Hi, I have these code, but always get "Array index is out of range" error. var vertices : Vector3[] = new Vector3[10]; function Update () { if(Input.GetKeyDown(KeyCode.I)){ vertices[0] = new Vector3( 1, 1, 1); } } can someone help me to solve this problem?? thanks. Make the array private Unity will use the inspector version of the array for any public arrays, and since you probably didn't fill val
![Array index is out of range](https://cdn-ak-scissors.b.st-hatena.com/image/square/90a73c513013902e5d51985d26395b1e1b70c1a2/height=288;version=1;width=512/https%3A%2F%2Feurope1.discourse-cdn.com%2Funity%2Foriginal%2F3X%2Fa%2Fa%2Faaeab82727497b6f37f4312dcd57be21e6cd25e8.png)