Auto-save not loading references created at runtime ?
Posted: Thu Mar 09, 2023 10:25 pm
First, great package, I'm loving it !
But I struggle with one point, even after reading the guide and playing with your exemple package so I feel stupid asking help for this trivial senario.
1- I use the auto-save method, I have a manager gameobject instanting a prefab at runtime.
2- It stores the reference of the spawned prefab's instance.
3- I save the scene and exit.
4- I check the save file, the manager has correctly saved a "_ES3Ref" with the ID of the spawned instance, and the instance saved data is also described below it.
5- I load the scene : the saved prefab is correctly loaded as well as all variables of the manager exept for that reference which is null !
What I am missing ?
Thanks
But I struggle with one point, even after reading the guide and playing with your exemple package so I feel stupid asking help for this trivial senario.
1- I use the auto-save method, I have a manager gameobject instanting a prefab at runtime.
2- It stores the reference of the spawned prefab's instance.
3- I save the scene and exit.
4- I check the save file, the manager has correctly saved a "_ES3Ref" with the ID of the spawned instance, and the instance saved data is also described below it.
5- I load the scene : the saved prefab is correctly loaded as well as all variables of the manager exept for that reference which is null !
What I am missing ?
Thanks