StaticenabledAllow creating gizmos
If disabled then no gizmos will be added to the scene anymore
StaticDrawStaticDrawStaticDrawStaticDrawDraw a label in the scene or attached to an object (if a parent is provided)
Optionalcolor: ColorRepresentationOptionalbackgroundColor: ColorRepresentation | ColorWithAlphaOptionalparent: Object3D<Object3DEventMap>a handle to the label that can be used to change the text
StaticDrawStaticDrawStaticDrawStaticDrawStaticDrawStaticDrawRender 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
Optionalcolor?: ColorRepresentation | undefinedthe color of the wire mesh
OptionaldepthTest?: booleanif true the wire mesh will be rendered with depth test
Optionalduration?: numberthe duration in seconds the mesh will be rendered. If 0 it will be rendered for one frame
the mesh object to render (if it is provided the matrix and geometry will be used)
the geometry of the mesh to render
the matrix of the mesh to render
StaticDrawStaticisStaticsetSet visibility of all currently rendered gizmos
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.