Visual Audit Protocol

Structural Systems

Return to Hangar
100A

The Data Cockpit

The Concept: ScriptableObjects

public int hp;
public float speed;
[Header]
public int hp;
public float speed;
100B

Collision Physics

The Concept: Colliders vs. Triggers

P
Bounce
// AI-Generated Code: Audit Failure void OnCollisionEnter(Collision other) { if (other.gameObject.CompareTag("Player")) { // ERROR: The player will physically bump into the coin // before this code runs, stopping their movement! Destroy(gameObject); } }
P
Pass
// Corrected Pilot Code: Smooth Flight void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { // The player glides through, triggering the event // without losing momentum. Destroy(gameObject); } }
100C

Flight Instrumentation

The Concept: UXML & Visual Elements

Canvas (Heavy)
VisualTree
Root
Box
Label
// Corrected Pilot Code: Modern & Efficient using UnityEngine.UIElements; // The modern namespace public class ScoreUI : MonoBehaviour { private Label scoreLabel; void OnEnable() { var root = GetComponent<UIDocument>().rootVisualElement; // Search the "Glass Cockpit" for the right instrument scoreLabel = root.Q<Label>("ScoreLabel"); } public void UpdateScore(int val) { scoreLabel.text = $"Score: {val}"; } }
CAPSTONE EXAM

The Engineer's Exam

The aircraft is on the tarmac. The systems are failing. Identify the three critical architectural errors in the AI-generated code below to clear the flight for takeoff.

Verify Capacity
Check Scope
Audit Efficiency