Tier 1 Series 3

3F: Tooltips & Help

Pilot Record
Student Profile
"In a high-stress flight situation, a pilot shouldn't have to pull a 500-page manual out from under the seat just to remember what the 'Auxiliary Flux' toggle does. The information should be right there when they point at the switch. If your AI gives you variables without context, you've created Documentation Debt."

The Concept: Contextual Metadata

Contextual Metadata allows you to attach instructions directly to your variables. This is vital for complex Digital Twins where non-coders need to tune the simulation.

[Tooltip("...")]: Displays a small text box when a user hovers over the variable name.
[HelpURL("...")]: Adds a link to external documentation.
Red Flag Detected

The AI Trap: "The Mystery Variable"

You ask the AI: "Create a variable to control the drone's detection sensitivity."

// AI-Generated Code: Context-Free
public float sensitivity = 0.5f; 

void Update() {
    // Audit Fail: Is 0.5 low or high? 
    // Does increasing it make the drone smarter or dumber?
    if (dist < sensitivity) { Detect(); }
}

This is "Operational Blindness." In a month, you won't remember if sensitivity should be 0.1 or 100. A professional pilot ensures the dashboard includes a "Label Tape" for every dial.

Elite Telemetry

Research shows "Elite" teams achieve 15% faster lead times by keeping AI on a "very tight leash."

  • Small Batches Solving one problem at a time prevents logic drift.
  • Modular Design Localizing the "blast radius" of AI changes.
  • Tight Loops Rapid iteration with constant code review.

The Mechanic's Correction

Corrective Protocol
[Tooltip("Distance in meters at which the drone identifies a target. Lower is more difficult to detect.")]
[SerializeField] private float detectionRange = 5.0f;

[HelpURL("https://your-docs.com/drone-sensors")]
public class DroneSensor : MonoBehaviour { ... }
Your Pilot Command
> Structure your logic as a Finite State Machine for clear behavior transitions.
Next Mission
The Vault Exam