Hey all, so i have a custom window for a tool i'm writing which has an array of game objects that this tool can select randomly from and instantiate the object in the editor scene view before runtime, the array of game objects resets upon play which is really just a nuisance but it would be nice if it would remember the objects assigned to it. It seems to be something to do with the array because a single game object will persist through a play test but once replaced with an array of game objects it resets the moment I press play. Anyone have a solution to this?? Thanks
Use a ScriptableObject to wrap the array and thus save the list of GameObjects into a fully-fledged asset file - then it will remember the array state forever.