Save System Disappears
Posted: Thu Jan 21, 2021 2:11 am
My save system suddenly disappears when I press "play" and I can't figure out why.
I had it working, then changed the prefab structure of my global singleton - but in a place that should not affect the save system - and now suddenly whenever I press "play", it just vanishes. No debug message, nothing.
I've tried unparenting it from the Dialogue Manager (which for some reason suddenly reparents itself) and that does nothing. If I disable the Save System game object, it spawns me a new one from the prefab, as soon as I enable the existing one it vanishes. It does NOT spawn me a new one if I leave the old one enabled, then it just vanishes. And spawning one is no good for me as I need a reference to trigger saving and loading.
I made sure that I don't happen to have a second game object named "Save System" in the scene.
I know this isn't a good bug report, but I have not the slightest clue what is causing this, none of the changes I made (adding a new UI menu, adding two variables to one saver, unpacking one prefab unrelated to the save system, etc.) would make sense as a cause of this, but there it is.
Just a clue where to start searching for what's going on would be great.
I had it working, then changed the prefab structure of my global singleton - but in a place that should not affect the save system - and now suddenly whenever I press "play", it just vanishes. No debug message, nothing.
I've tried unparenting it from the Dialogue Manager (which for some reason suddenly reparents itself) and that does nothing. If I disable the Save System game object, it spawns me a new one from the prefab, as soon as I enable the existing one it vanishes. It does NOT spawn me a new one if I leave the old one enabled, then it just vanishes. And spawning one is no good for me as I need a reference to trigger saving and loading.
I made sure that I don't happen to have a second game object named "Save System" in the scene.
I know this isn't a good bug report, but I have not the slightest clue what is causing this, none of the changes I made (adding a new UI menu, adding two variables to one saver, unpacking one prefab unrelated to the save system, etc.) would make sense as a cause of this, but there it is.
Just a clue where to start searching for what's going on would be great.