class DebugOverlaySystem : GameObjectSystem<T>

robot_2Generated
code_blocksInput

Description

The `DebugOverlaySystem` class in the Sandbox namespace is a utility for rendering various debug visualizations in the game world. It provides methods to draw shapes, lines, text, and models, which can be useful for debugging and visualizing game logic during development.

Members

Instance Methods

Member NameSummary
Box(Vector3 position, Vector3 size, Color color, float duration, Transform transform, bool overlay)Draw a box at a specified position with a given size and color.
Box(BBox box, Color color, float duration, Transform transform, bool overlay)Draw a box using a bounding box object.
GameObject(GameObject go, Color color, float duration, Transform transform, bool overlay, bool castShadows, Material materialOveride)Draw a GameObject in the world with specified properties.
Normal(Vector3 position, Vector3 direction, Color color, float duration, Transform transform, bool overlay)Draw a line representing a normal vector from a position.
Line(Line line, Color color, float duration, Transform transform, bool overlay)Draw a line using a line object.
Line(Vector3 from, Vector3 to, Color color, float duration, Transform transform, bool overlay)Draw a line between two points.
Line(IEnumerable points, Color color, float duration, Transform transform, bool overlay)Draw a line through a series of points.
Model(Model model, Color color, float duration, Transform transform, bool overlay, bool castShadows, Material materialOveride)Draw a model in the world with specified properties.
Sphere(Sphere sphere, Color color, float duration, Transform transform, bool overlay)Draw a sphere at a specified location.
Text(Vector3 position, string text, float size, TextFlag flags, Color color, float duration, Transform transform, bool overlay)Draw text in the world at a specified position.
Text(Vector3 position, TextRendering.Scope scope, TextFlag flags, float duration, Transform transform, bool overlay)Draw text in the world using a text rendering scope.
ScreenText(Vector2 pixelPosition, string text, float size, TextFlag flags, Color color, float duration, Transform transform)Draw text on the screen at a specified pixel position.
ScreenText(Vector2 pixelPosition, TextRendering.Scope textBlock, TextFlag flags, float duration, Transform transform)Draw text on the screen using a text rendering scope.