DebugDraw.DrawTriangle(UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Color, UnityEngine.Transform)

Here are the examples of the csharp api DebugDraw.DrawTriangle(UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Color, UnityEngine.Transform) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : DebugDraw.cs
License : MIT License
Project Creator : m969

public static void DrawMesh(Mesh mesh, Color color, Transform t)
    {
        for(int i = 0; i < mesh.triangles.Length; i += 3)
        {
            DrawTriangle(mesh.vertices[mesh.triangles[i]], mesh.vertices[mesh.triangles[i + 1]], mesh.vertices[mesh.triangles[i + 2]], color, t);
        }
    }