Let’s imagine that on my first scene I spawn an item object with some random characteristics and I want to be able to save the object to inventory and load all inventory items on another scene.
Another example, I have a “build” mode where I build a car out of modules (similar to the game Bad Piggies) and I add each module to a list of gameobjects, which I use later in another scene to rebuild my car out of the modules stored in the list.
For both of these problems I need to be able to save List<GameObject> myList on one scene and then load it on another scene. How can I do this? It seems like I cannot serialize List<GameObject> myList