Render DebugOverlay before UI

This commit is contained in:
Matt Stevens
2025-11-24 17:02:14 +00:00
parent af2c9f63d9
commit dd44dc6eb8
2 changed files with 4 additions and 1 deletions

View File

@@ -381,6 +381,10 @@ public sealed partial class CameraComponent : Component, Component.ExecuteInEdit
return;
camera.OnRenderUI = () => OnCameraRenderUI( camera );
camera.OnRenderOverlay = () =>
{
if ( IsMainCamera ) Sandbox.DebugOverlay.Render();
};
}
[Obsolete( "Use CommandList" )]

View File

@@ -18,7 +18,6 @@ public static partial class Graphics
using ( new Graphics.Scope( in setup ) )
{
RenderUiOverlay();
DebugOverlay.Render();
}
return;