Question by
Gecko125 · Aug 17, 2019 at 07:21 PM ·
instantiateprefabsave dataclone
Saving Instantiated objects,Saving Instantiated objects
Hey, so I'm basically working on this idle type of game. Over time I use Instantiate to clone in some prefabs. The problem is once I reload the scene, all of the object are gone, is there some way that I can save and load them?
This is my current code to Instantiate the object, not exactly anything complex
public void SpGuard()
{
Instantiate(guard, new Vector3(3, 2, 0), Quaternion.identity);
Debug.Log("works");
}
,Hey, so I'm working on this type of idle game. In currently using Instantiate to spawn in prefabs as the game goes on. The problem is once I reload the scene all of the cloned objects are gone. Is there a way that I can save them some how??
This is the code that I currently have
public void SpGuard()
{
Instantiate(guard, new Vector3(3, 2, 0), Quaternion.identity);
Debug.Log("work");
}
Comment