Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

I'm trying to make a custom mesh and this error keeps appearing \/

$
0
0
Failed setting triangles. Some indices are referencing out of bounds vertices. IndexCount: 600, VertexCount: 121
UnityEngine.Mesh:set_triangles (int[])

code:
Code (CSharp):
  1.  
  2.     Mesh mesh;
  3.     public MeshFilter filter;
  4.     List<Vector3> vertices = new List<Vector3>();
  5.     Vector3[] verticesArray;
  6.     List<int> triangles = new List<int>();
  7.     int[] trianglesArray;
  8.     public int size = 11;
  9.     int z = 1;
  10.     private void Awake() {
  11.         mesh = new Mesh();
  12.        
  13.     }
  14.     // Start is...
I'm trying to make a custom mesh and this error keeps appearing \/

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>