void
WireMesh
(
NativeArray<float3> | vertices | |
NativeArray<int> | triangles | |
)
Draws a wire mesh.
Every single edge of the mesh will be drawn using a Line command.
var go = GameObject.CreatePrimitive(PrimitiveType.Sphere);
go.transform.position = new Vector3(0, 0, 0);
using (Draw.InLocalSpace(go.transform)) {
Draw.WireMesh(go.GetComponent<MeshFilter>().sharedMesh, color);
}
VersionSupported in Unity 2020.1 or later.