Overview of DebugOverlay
Overview of the DebugOverlay System
The debug overlay system in s&box is very easy to use and fairly useful for debugging purposes, below is a example of how you can draw debug screen text and a sphere using DebugOverlay.ScreenText()
you can find all other DebugOverlay methods here
In this example we'll simply be using the OnUpdate()
method to call our DebugOverlay ScreenText and OnStart for the Sphere.
Below is the result of the code snippet in the scene.