public sealed class DiagnosticOverlaySystemDraws the diagnostic overlays into the frame's debug geometry.
No guide page documents this yet — the page shows what the code says about itself.
As a system
- Phase
- PreRender
Remarks
In PreRender, which is the last phase before the graph is recorded: everything an overlay reports on has run, and the renderer has not yet drained. DebugDrawSystem ages the result afterwards, in PostRender.
⚠ Viewport is in render-target pixels and the host has to keep it current. Nothing here can know how big the window is — that is a platform's answer, and this assembly has no platform. A stale value draws the overlays for the size the window used to be, which after a resize means panels that hang off the edge.
Fields and properties (2)
public Vector2 ViewportHow big the render target is, in pixels.
public SystemAccess AccessWhat this system reads and writes.
Methods (2)
public DiagnosticOverlaySystem(DiagnosticOverlays overlays, DebugDraw draw)Draws the diagnostic overlays into the frame's debug geometry.
public override JobHandle Update(in SystemContext context, JobHandle dependency)Runs the system.