Save System and Manager classes
Posted: Thu Apr 24, 2025 11:19 pm
Hello! If this has been asked/solved before, I couldn't find it for the life of me.
I'm using the DS save system and it's coming together, but for some reason I can't figure out how to get my Manager classes to load when I load a game.
What saver component should I be attaching to things like my PlayerManager, UIManager, AudioManager, etc? I made a "don'tdestoryonload" component so they'll persist, and I attache a SpawnedObject component, but that didn't do it.
For reference, if I start the game in a scene with all of the manager prefabs in the scene, then load the game, it works fine. However if I save the game in a scene without them, then load, the prefabs aren't there.
Any help is appreciated! If I need to provide the project file I can.
I'm using the DS save system and it's coming together, but for some reason I can't figure out how to get my Manager classes to load when I load a game.
What saver component should I be attaching to things like my PlayerManager, UIManager, AudioManager, etc? I made a "don'tdestoryonload" component so they'll persist, and I attache a SpawnedObject component, but that didn't do it.
For reference, if I start the game in a scene with all of the manager prefabs in the scene, then load the game, it works fine. However if I save the game in a scene without them, then load, the prefabs aren't there.
Any help is appreciated! If I need to provide the project file I can.