GizmosΒΆ
Inherited: None
DescriptionΒΆ
Note: Gizmos can be drawn only in Editor.
The Gizmos class provides a collection of static methods to draw various shapes and primitives for debugging in a 3D space. Users can use these methods to visualize different elements during development and debugging.
Public MethodsΒΆ
None
Static MethodsΒΆ
void |
drawIcon (const Vector3 & center, const Vector2 & size, const TString & name, const Vector4 & color) |
void |
drawLines (const Vector3Vector & points, const IndexVector & indices, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawSolidBox (const Vector3 & center, const Vector3 & size, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawSolidMesh (Mesh & mesh, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawSolidSector (const Vector3 & center, float radius, float start, float angle, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawSolidSphere (const Vector3 & center, float radius, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawSolidTriangles (const Vector3Vector & points, const IndexVector & indices, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawWireArc (const Vector3 & center, float radius, float start, float angle, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawWireBox (const Vector3 & center, const Vector3 & size, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawWireCapsule (const Vector3 & center, float radius, float height, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawWireCircle (const Vector3 & center, float radius, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawWireCylinder (const Vector3 & center, float radius, float height, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawWireMesh (Mesh & mesh, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawWireRectangle (const Vector3 & center, const Vector2 & size, const Vector4 & color, const Matrix4 * transform = nullptr) |
void |
drawWireSphere (const Vector3 & center, float radius, const Vector4 & color, const Matrix4 * transform = nullptr) |
Methods DescriptionΒΆ
Draws an billboard icon at the specified center with the given size, color. Parameter name will be used to set a texture to render.
Draws lines connecting specified points and color in 3D space. Parameter indices specifies relations between points. Parameter transform can be used to move, rotate and scale this structure.
Draws a solid box with specified center, size and color in the 3D space. Parameter transform can be used to move, rotate and scale this box.
Draws a mesh with a specified color and transform.
Draws a solid sector in the 3D space with the specified center, radius and color in the 3D space. Parameters start and angle allows to specify angles to draw a sector in degrees. Parameter transform can be used to move, rotate and scale this arc.
Draws a solid sphere with specified center, radius and color in the 3D space. Parameter transform can be used to move, rotate and scale this sphere.
Draws solid triangles connecting specified points and color in 3D space. Parameter indices specifies relations between points. Parameter transform can be used to move, rotate and scale this structure.
Draws a wire arc in the 3D space with the specified center, radius and color in the 3D space. Parameters start and angle allows to specify angles to draw a sector in degrees. Parameter transform can be used to move, rotate and scale this arc.
Draws a wire box in the 3D space with the specified center, size and color in the 3D space. Parameter transform can be used to move, rotate and scale this box.
Draws a wire capsule in the 3D space with the specified center, radius, height and color in the 3D space. Parameter transform can be used to move, rotate and scale this capsule.
Draws a wire circle in the 3D space with the specified center, radius and color in the 3D space. Parameter transform can be used to move, rotate and scale this circle.
Draws a wire cylinder in the 3D space with the specified center, radius, height and color in the 3D space. Parameter transform can be used to move, rotate and scale this cylinder.
Draws a wireframe version of the specified mesh and color in 3D space. Parameter transform can be used to move, rotate and scale this mesh.
Draws a wire rectangle in the 3D space with the specified center, size and color in the 3D space. Parameter transform can be used to move, rotate and scale this rectangle.
Draws a wire sphere in the 3D space with the specified center, radius and color in the 3D space. Parameter transform can be used to move, rotate and scale this sphere.