- Home /
The question is answered, right answer was accepted
Array does not update after changing the content and size of an array
Hello Com,
i wrote a small spawner, which first initializes an Array with different spawn combinations. I changed the size of the array to insert new elements but after i run the game in unity, it says IndexOutOfBount, which means the size was not changed. Only saving + restarting Unity initialized the "correct"(my adjusted) array, but only saving does not solve the problem.
SOLVED: Do changes on the prefab, not on the "clone" in the scene :)
Follow this Question
Related Questions
How do you make an array out of an Assets subfolder containing Prefabs? 2 Answers
How to fix: !CreateDirectoryRecursive(fullpath) 6 Answers
Unity doesn't open 3 Answers
Coroutine works in editor, but not in build Windows application 0 Answers
Unity 5 C#, having a script show up in a path in the Editor 1 Answer