StaticcolorStaticisDetermines if depth-testing is enabled (Default: Enabled)
StaticisEnables depth testing, and renders the occluded portion with a tinted color. (Default: False)
StaticlayerSets the layer bitfield that controls whether a handle is considered visible in a specific camera. Handle layer must match camera layer in order for the camera to render it
StaticscreenStaticspecialSet special rendering flags.
StatictransformStaticdrawStaticdrawStaticdrawStaticdrawDraws a solid cylinder.
Position of the center of the base of the cylinder.
Orientation of the cone, pointing from center base to the top of the cylinder.
Height of the cylinder (along the normal).
Radius of the cylinder.
Optionalscale: Immutable<Vector2>Scale applied to cylinder's disc width & height. Allows you to create elliptical cones.
StaticdrawStaticdrawStaticdrawStaticdrawStaticdrawStaticdrawDraws a solid mesh.
The mesh to render.
Optional base color texture.
Optional normal texture.
The orientation of the axis.
StaticdrawStaticdrawStaticdrawStaticdrawDraws a solid skeleton bone.
The position of the joint (or start of the bone).
The radius of the bone.
If true, only lines will be drawn to the parent, and no cones
OptionaljointColor: Immutable<Color>OptionalparentColor: Immutable<Color>Color of the parent bone
StaticdrawStaticdrawDraws a mesh representing 2D text with the specified properties.
Position to render the text at. Text will be centered around this point.
Text to draw.
Font to use for rendering the text's characters.
OptionalfontSize: numberSize of the characters, in points.
StaticdrawDraws a solid torus.
The orientation of the torus.
The radius of the torus.
The tube radius of the torus.
The quality of subdivision of the torus.
StaticdrawStaticdrawStaticdrawStaticdrawStaticdrawDraws a wireframe cylinder.
Position of the center of the base of the cylinder.
Orientation of the cylinder, pointing from center base to the top of the cylinder.
Height of the cylinder (along the normal).
Radius of the cylinder.
Optionalscale: Immutable<Vector2>Scale applied to cylinder's disc width & height. Allows you to create elliptical cones.
StaticdrawStaticdrawStaticdrawStaticdrawStaticdrawStaticdrawDraws a skeleton bone.
The position of the joint (or start of the bone).
The position of the parent bone.
The radius of the bone.
If true, only lines will be drawn to the parent, and no cones
OptionalboneColor: Immutable<Color>Color of the bone
OptionalparentColor: Immutable<Color>Color of the parent bone
Staticdraw
The Gizmos class provides rendering and picking of gizmo elements.
Gizmos are icons and 3D objects usually rendered in scene view for various visualization purposes. For example a Camera component will have a gizmo that draws a camera icon since otherwise it has no visual representation. Aside from being rendered, gizmos can also be selected by the user as if they were normal scene elements.
To add a gizmo to a scene, apply the
@drawGizmodecorator to a static method.