public sealed class AiOverlaySystemDraws the AI overlay once a frame, after everything that decides anything has run.
As a system
- Phase
- PreRender
- Reads
- AiAgent
Remarks
In PreRender for DiagnosticOverlaySystem's reason: an overlay reads and does not simulate, so it runs after the numbers it reports exist and before anything drains the geometry. AiSystem is in Update and every action it started has been ticked by then, so what the overlay shows is this frame's decision rather than the last one's.
⚠ A system rather than a call in the host, so that turning the debugger on is adding a system. A host that never adds it pays nothing at all — no capture, no formatting, and no reference from the frame loop to an assembly it does not otherwise need.
Fields and properties (2)
public AiGameplayDebugger DebuggerWhat is drawn.
public SystemAccess Access
Methods (2)
public AiOverlaySystem(AiGameplayDebugger debugger, AiSystem agents, DebugDraw draw)Draws the AI overlay once a frame, after everything that decides anything has run.
public override JobHandle Update(in SystemContext context, JobHandle dependency)Runs the system.
Used by (2)
- AiVillageGameAiVillage
- VillageTestsAiVillage.Agent.Tests