Quantcast
Channel: Questions in topic: "clone"
Viewing all articles
Browse latest Browse all 508

Saving Instantiated objects,Saving Instantiated objects

$
0
0
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"); }

Viewing all articles
Browse latest Browse all 508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>