Hey, all,
I have an array which is declared public. The content of this was originally entered via the editor (dragging the items to the slots in the editor), then, as the game has grown, this has been duplicated for every level.
I now want to change the values in that array, but don’t want to do them 24 times, so I’ve initialised the array in code, like so:
public string[] Names = { "One", "Two", ..., "Ten" };
problem is that Unity is ignoring this. So, I figured if I removed the “public” from it’s declaration, this would wipe it from the Unity Editor’s memory, I’d save the project, close Unity, then restart, redeclare my array as “public”, and everything would be as I wanted it to be, but unfortunately, this hasn’t worked - even following what I suggest above, all of the old values are still remembered.
Can anyone tell me how to get the Unity Editor to forget this stuff? It’s doing my head in!
Thanks!
SB