mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 22:48:07 -05:00
Render DebugOverlay before UI
This commit is contained in:
@@ -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" )]
|
||||
|
||||
@@ -18,7 +18,6 @@ public static partial class Graphics
|
||||
using ( new Graphics.Scope( in setup ) )
|
||||
{
|
||||
RenderUiOverlay();
|
||||
DebugOverlay.Render();
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user