Instantiated prefab on Load not visible?

Discussion and help for Easy Save 3
Post Reply
EmanuelBjorsell
Posts: 7
Joined: Fri May 28, 2021 9:11 am

Instantiated prefab on Load not visible?

Post by EmanuelBjorsell »

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?
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Instantiated prefab on Load not visible?

Post by Joel »

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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
EmanuelBjorsell
Posts: 7
Joined: Fri May 28, 2021 9:11 am

Re: Instantiated prefab on Load not visible?

Post by EmanuelBjorsell »

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!
Post Reply