- Home /
This question was
closed Jul 07, 2020 at 05:21 PM by
Nortanian.
Question by
Nortanian · Jul 05, 2020 at 06:06 AM ·
arrayclonearray of gameobjects
I want to add cloned gameobjects that are triggered, to an array.
This is the code that i have used. But I'm getting an index out of range error. Can someone solve this issue? Thank you.
capture.png
(24.2 kB)
Comment
Best Answer
Answer by eirikamb · Jul 07, 2020 at 08:24 AM
I think that arrays are of fixed size. Hence you would need to increase the size of the array before adding new gameobjects. I am not sure of how, but thats something to explore.