Hi,
I want to instantiate prefabs in runtime, save them and then be able to load them. I will instantiate them on load because I'm destroying all of them before I load since I don't know which ones exist in the save file. So if I have 4 prefabs in the scene already and then I load a save that only has 3 prefabs, I will have one too many.
My problem is that when I Load, the prefabs don't show up but still seem to be in the save file. It works fine if I save and load in the same session, but if I restart after I saved the prefabs won't show up.
Does only happens in a Build version. I have the prefab in a Resources folder.
Can you see something that I'm missing?
Instantiated prefab on Load not visible?
-
- Posts: 7
- Joined: Fri May 28, 2021 9:11 am
Re: Instantiated prefab on Load not visible?
Hi there,
Please could you show me the code you're using to save, load and instantiate your prefabs?
Also just to check, have you followed the Saving and Loading Prefab Instances instructions here?
https://docs.moodkie.com/easy-save-3/es ... 0instances
All the best,
Joel
Please could you show me the code you're using to save, load and instantiate your prefabs?
Also just to check, have you followed the Saving and Loading Prefab Instances instructions here?
https://docs.moodkie.com/easy-save-3/es ... 0instances
All the best,
Joel
-
- Posts: 7
- Joined: Fri May 28, 2021 9:11 am
Re: Instantiated prefab on Load not visible?
Yes, it seems that I missed to add ES3Prefab... I made my own script and assumed that it was enough but it was missing alot from ES3Prefab.
Thank you for reminding me!
Thank you for reminding me!