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 a static property, meaning it can be accessed without instantiating the Gizmo
class.
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 a static property, meaning it can be accessed without instantiating the Gizmo
class.
To use the Draw
property, simply access it directly from the Gizmo
class. This property is typically used in the context of rendering or visualizing shapes in a scene for debugging or design purposes.
// Example of using the Gizmo.Draw property // Access the Draw property to start drawing shapes Gizmo.Draw.Begin(); // Draw a line from point A to point B Gizmo.Draw.Line(Vector3.Zero, new Vector3(1, 1, 1)); // Draw a sphere at a specific position Gizmo.Draw.Sphere(new Vector3(2, 2, 2), 0.5f); // End the drawing session Gizmo.Draw.End();