Skip to content

Mesh & Wire Mesh

Jon McCreadie edited this page Oct 26, 2024 · 5 revisions
Screenshot 2024-10-14 200516

Description

Draw a solid or wireframe mesh.

Serialized Properties

Type Property Result
Mesh Mesh Only visible if Use Mesh On Filter is false.
The mesh to be drawn as a gizmo.
bool Use Mesh On Filter Only visible if game object has a Mesh Filter component.
Toggle if the mesh should be taken from attached Mesh Filter.
bool Use Attached Transform Values If true, gizmo will be controlled by the transform values of its game object.
bool Use Origin Transform Values Only visible if Use Attached Transform values is false & Origin Transform is not null.
If true, gizmo will be controlled by the referenced Origin Transform
Vector3 Mesh Rotation Only visible if Use Attached Transform Values & Use Origin Transform Values is false.
Directly applies a rotation to the gizmo.
Vector3 Scale Only visible if Use Attached Transform Values & Use Origin Transform Values is false.
Directly sets the size of the gizmo in world space.

Unity Docs

Unity - Scripting API: Gizmos.DrawMesh

Unity - Scripting API: Gizmos.DrawWireMesh

Clone this wiki locally