GetComponent<SavingSystem>().Load(defaultSaveFile);

I’m getting the error that this is being destroyed but I am trying to access it… what could be the problem?

Went and watched the whole tutorial again, no change. Someone please let me know! :slight_smile:

Hi, sorry for the delay in answering this.
It looks like there is still a copy of the SavingWrapper or SavingSystem in your scene file. The SavingSystem, SavingWrapper, and Fader need to be in the PersistentObjectsPrefab, which is instantiated into the scene by PersistentObjectSpawner. If the objects are already in the scene, then they’ll be the ones picked up and will be destroyed when the next scene is loaded.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms