Hello Chris,
AC = 1.74.2
Unity = 2020.3.16f1
Our game include 'mini-game' puzzles (prefabs with custom logic). They are turned off by default to preserve game resources budget (drawcalls, script calls), player can interact with only one puzzle at the same time, and we need to properly handle user state during gameplay (saving/loading).
But in current flow it isn't working.
Is there was an intention to ignore inactive objects and script components on them?
Most of 'Remember' components doesn't save data when object is in inactive state.
Is there a way to properly save and load inactive objects with 'Remember' components attached to them?
I'll attach screenshots where I found key areas describing current problem. https://imgur.com/a/ZE9o3cF
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
That's correct - disabled components are not considered by the save-game system.
This script on the wiki provides a means of storing a Remember component's data inside a Global String variable. It's intended for objects that are spawned/removed, but should work for objects that are disabled as well.
The provided script maps one Remember component to one Variable, but it could probably be adapted to combine multiple Remember components into a single string.