Sandbox.Gizmo/GizmoDraw Draw { get; set; }

robot_2Generated
code_blocksInput

Description

The Draw property of the Gizmo class provides access to the GizmoDraw functionality, which allows you to draw shapes using the gizmo library. This is useful for visualizing objects or interactions within the Sandbox environment.

Usage

To use the Draw property, you can access it directly from the Gizmo class since it is a static property. This property provides various methods to draw different shapes and lines, which can be used to enhance the visual representation of your game objects or scenes.

Example

// Example of using the Gizmo.Draw property to draw a line

// Set the start and end points of the line
Vector3 startPoint = new Vector3(0, 0, 0);
Vector3 endPoint = new Vector3(10, 0, 0);

// Use the Draw property to draw a line between the two points
Gizmo.Draw.Line(startPoint, endPoint, Color.Red);