Transport objects between scenes.

Hi there!

So, I’ve setup a persistent Game Object, and I want that Game Object to store several informations, including Player Informations. One of those informations is the Player Ship, that it’s assigned as a Game Object variable.

I’ve scripted it out, but, the stored Game Object variable will go “Missing”, after I load a new scene. Now, I know of DontDestroyOnLoad(GameObject), but that’s not exactly what I want, since there’s no way to remove that status later, without deleting the object and recreating it (Again, one of the things I don’t wanna do).

So, is there a way to store such information (which will include more than numbers and strings)?

Also, I’m using Unity Free.

Thanks in Advance, João Borrego

Before changing scene, store your values in PlayerPrefs, then when loading the new scene, read the values back from PlayerPrefs : Unity - Scripting API: PlayerPrefs

For the PlayerShip GameObject, you can use the Resources folder. Load a prefab, instantiate it and assign it to the GameObject variable : Unity - Scripting API: Resources