Skip to main content

MeshFaceViewer

A class in Root.Township, the global namespace.

Editor debug tool that shows only a range of a mesh's triangles on a mesh filter.

Constructors​

MemberWhat it is
MeshFaceViewer()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

7 private and internal fields
MemberWhat it is
private int activeMaxLast applied end index.
private int activeMinLast applied start index.
private Mesh clonePreview mesh shown on the filter.
private MeshFilter filterMesh filter that shows the preview.
private int maxIndexTriangle index to stop at.
private int minIndexFirst triangle to show.
private Mesh testingMeshMesh being inspected.

Methods​

1 private and internal method
MemberWhat it is
private void OnValidate()Rebuilds the preview mesh from triangles minIndex up to maxIndex of testingMesh.