AI Command Lab // Flight Simulator
5F: The Inspector List
Initial AI Output (Fragile)
// AI-Generated Code: Invisible and non-tunable
private List<Vector3> patrolPoints = new List<Vector3>();
void Update() {
// Audit Fail: The Pilot cannot see these points in the Unity Inspector.
// To change the patrol route, someone has to re-write the script.
FollowPath(patrolPoints);
}
Initial AI Prompt
"You ask the AI: "Create a list of patrol points for the drone.""
Pilot Comm Link
Mission Objective: Final Mission: Combine multiple patterns for a robust system audit.
Optimized Protocol
// Corrected: Tunable and visible.
[Header("Mission Navigation")]
[Tooltip("List of world positions the drone will visit in sequence.")]
[SerializeField] private List<Vector3> patrolPoints = new List<Vector3>();
void Update() {
// Audit Pass: The Pilot can now drag and drop points in the Inspector.
FollowPath(patrolPoints);
}