StateTree Debug Overlay
StateTree Debug Overlay draws short text above an Actor while a StateTree state is active. Use it in PIE to confirm that a state entered, bound text changed, and exit cleanup occurred. It is local read-only HUD diagnostics, not replicated state or Shipping UI.
For StateTree setup, see Integrate StateTree and Blackboard; for settings, see Project Settings and Blackboard; for runtime panels, see GameplayDebugger.
Prerequisites
Draw code is compiled only in Editor plus debug-drawing build conditions. At runtime, enable both CVars:
Turning either off stops drawing. The overlay is neither replicated nor saved as game UI state; in multiplayer each local client sees only its own HUD drawing.
StateTree Task
Add Task: Debug Overlay Text to a StateTree.
When ReferenceActor is a Controller, drawing resolves its current Pawn. A Pawn or ordinary Actor is used directly. Entering the state registers text and exiting unregisters it. The Task returns Running and has bConsideredForCompletion disabled, so it does not affect StateTree completion.
Project settings
These UGAIS_DeveloperSettings Debug Overlay fields exist only in Editor data.
Filtering applies to the final draw Actor. A Controller resolves to Pawn before the Pawn-class filter is applied.
Verification and troubleshooting
Use GameplayDebugger for system snapshots and Visual Logger for per-Tactical-Source production detail. Debug Overlay only draws local StateTree state text.