Esempio n. 1
0
 public static void DrawPolygonalMesh(Mesh mesh, Transform transform, bool vertices = true, bool edges = true, bool triangleOrigins = true, bool triangleDirections = true, bool originCorners = false, bool edgeCenters = false, bool edgeNormals = false)
 {
     if (mesh == null)
     {
         return;
     }
     Polygon[] list = DecalMesh.CreatePolygons(mesh.vertices, mesh.triangles);
     DrawPolygonalMesh(list, transform, vertices, edges, triangleOrigins, triangleDirections, originCorners, edgeCenters, edgeNormals);
 }
Esempio n. 2
0
 public void Create()
 {
     MeshFilter.sharedMesh = DecalMesh.Create(this, m_maxAngle, m_distance, m_normalsSmoothAngle);
 }