Auto save Error when loading form different scene.
Posted: Thu Apr 30, 2020 5:20 pm
I have been using the auto save feature to save all my progress during playtime, this works well if i stay in the same scene.
But now i want to load the main scene form a start scene. (just a menu with some buttons)
Using the SceneManager.LoadScene() with a button press the main scene gets loaded, but now the AutoSaveMg gives errors on most of my objects and saving doesn't work anymore.
Is this something im doing wrong loading the level? im just at a loss that it works player form the main scene, but not loading from the start scene.
all the errors are the same:
NullReferenceException: Object reference not set to an instance of an object
ES3AutoSaveMgr.AddAutoSave (ES3AutoSave autoSave) (at Assets/Plugins/Easy Save 3/Scripts/Auto Save/ES3AutoSaveMgr.cs:85)
ES3AutoSave.Awake () (at Assets/Plugins/Easy Save 3/Scripts/Auto Save/ES3AutoSave.cs:13)
But now i want to load the main scene form a start scene. (just a menu with some buttons)
Using the SceneManager.LoadScene() with a button press the main scene gets loaded, but now the AutoSaveMg gives errors on most of my objects and saving doesn't work anymore.
Is this something im doing wrong loading the level? im just at a loss that it works player form the main scene, but not loading from the start scene.
all the errors are the same:
NullReferenceException: Object reference not set to an instance of an object
ES3AutoSaveMgr.AddAutoSave (ES3AutoSave autoSave) (at Assets/Plugins/Easy Save 3/Scripts/Auto Save/ES3AutoSaveMgr.cs:85)
ES3AutoSave.Awake () (at Assets/Plugins/Easy Save 3/Scripts/Auto Save/ES3AutoSave.cs:13)