How to save instantiated gameObject in unity3d

How to save instantiated gameObject in unity3d???
i wat to access the instantiated gameobject after i exit from play mode.

You could use a static variable or you could use DontDestroyOnLoad.

Not possible with dont destroy…

In my case, I want to save Gameobjects which are created during run time or which are instantiated during run time.

I’m not sure if there’s an easy way of doing that. One way came to mind…

  • Serialize your data.
  • Save it to a file or PlayerPrefs.
  • Have an editor script re-create it in the editor.

Is there any other way?

hmmm… is there is any package available for this?