After importing the plugin to your project, you can open Mesh Debugger window to start inspecting any selected object.
The first row shows which object and mesh that currently being inspected. It will be automatically updated to active (selected) object in the scene, then looking for a Mesh containing in either MeshFilter
(3D), SkinnedMeshRenderer
(as Static Snapshot) or Graphic
(UI).
Note that to be able to inspect a mesh, you need to make sure that the mesh is readable.
Until this version you can't lock the selected mesh and there's no plan for supporting multiple inspection in the same time.
Static
: Turn this on if currently inspected mesh won't change over time.Depth Culling
: Reduce complexity by enable Z-Depth on visual cues.Equalize
: Keep visual cues scale equally in Screen Space (requiresStatic
turned off).Partial Debug
: Only inspect vertex/triangle at selected fraction.
For displaying vector values like normal direction:
Ray Size
: Size of the ray.Vertex Rays
: Show Normal/Tangent/Bitangent of each vertex.Additional Rays
: Show Vertex to Triangle ray and Normal direction of each Triangle.
Heatmap is used displaying scalar values like vertex index.
-
Use Heatmap
: Display scalar value as number (image on left) or color indicator (image on right). -
Debug Vertices
Displays:Index
: Index of each vertexShared
: How many triangles reference that vertex (useful for detecting orphaned vertices)Duplicated
: How many vertices have the same position
-
Debug Triangles
Displays:Index
: Index of each triangleArea
: Calculated area surface of each triangleSubmesh
: Submesh index of each triangle
-
Debug Surface
Modifies object material temporarily to displays:Facing
: Triangle facing (useful for detecting flipped normals)Color
: Viewing Color ChannelUV
: Viewing selected UV Channel (red-green for X,Y vector)Tangents
: Viewing selected Tangent vector in Color
*
Debug Surface
Only supports mesh fromMeshFilter
at this point.
In near bottom in the Window there are read-only statistics about the inspected mesh including vertex count, indices, vertex channels, and many more.
The context menu is available by clicking the three dots on the top right of the window. It contains:
Show Help
: Open this manual.Snapshot Mesh
: Create a static snapshot of the currently inspected mesh. This is useful if you want to inspect a mesh that will change over time.Toggle Lock Selection
: Lock the currently inspected mesh.
This software is open source, meaning you can modify it to your liking. If you have any question or suggestion, feel free to open an issue.