Static
enabledAllow creating gizmos
If disabled then no gizmos will be added to the scene anymore
Static
DrawStatic
DrawStatic
DrawDraw a label in the scene or attached to an object (if a parent is provided)
Optional
color: ColorRepresentationOptional
backgroundColor: anyOptional
parent: Object3Da handle to the label that can be used to change the text
Static
DrawStatic
DrawStatic
DrawStatic
DrawStatic
DrawStatic
DrawRender a wireframe mesh in the scene. The mesh will be removed after the given duration (if duration is 0 it will be rendered for one frame).
If a mesh object is provided then the mesh's matrixWorld and geometry will be used. Otherwise, the provided matrix and geometry will be used.
the options for the wire mesh
Gizmos.DrawWireMesh({ duration: 1, color: 0xff0000, mesh: myMesh });
Static
DrawStatic
isReturns true if a given object is a gizmo
Generated using TypeDoc
Gizmos are temporary objects that are drawn in the scene for debugging or visualization purposes
They are automatically removed after a given duration and cached internally to reduce overhead.
Use the static methods of this class to draw gizmos in the scene.