Sandbox Logo

API

class DebugOverlay 
{
    void BBox( BBox bbox, DebugStyle style = DebugStyle.Line, Color? color = null, float time = 0f )
    void Sphere( Sphere sphere, DebugStyle style = DebugStyle.Line, Color? color = null, float time = 0f )
    void Line( Vector3 a, Vector3 b, Color? color = null, float time = 0f )
    void Text( string text, Vector3 pos, string font = "Consolas", float size = 18, TextFlag flags = TextFlag.LeftTop, Color? color = null, float time = 0f )
    void Trace( SceneTraceResult tr, float time = 0f )
    void Model( Model model, Transform transform, float time = 0f )
    void Sprite( Texture texture, Vector3 position, float size, Color? color = null, float time = 0f )
}
// Renders a BBox for 20 seconds.
DebugOverlay.BBox( global::BBox.FromPositionAndSize( 0f, 100f ), time: 20f );

Source

DebugOverlay

A shrimple debug library.

Created
7/4/2024
Updated
9/22/2024
In Collections
Referenced By
Dependencies
Reviews