I have a script which initialises a bunch of child
gameObject(s). I wanted all of this to happen outside of the game, so I created an inspector script which has a button which triggers the method which does all the work. The problem is that when something is initialised it's global variables aren't saved for runtime this even goes so far that when I call a method outside of the one that the inspector script calls it forgets the parameters that were passed in (so they appear as null).
I've tried adding the
[Serializable] attribute to the scripts but it doesn't change anything. What do I have to do?