Hello,
For the first time testing the game I have noticed that on Save/Load game NPCs are losing their position,
Hotspot are active even if they have been turned off during the gameplay and
the visibility of items has the same issue of the hotspot.
So for NPC I am using only remember transform.
For Hotspots I am using remember hotspot.
For Visibility, remember visibility.
I have a couple o questions about this topic that is very confusing to me:
Thanks in advance for the great support and patience!
Best,
Flavio
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
See the Manual's "Saving and loading overview" and "Saving scene objects" chapters for full details on how the save system works.
Essentially, though: AC will automatically save anything that it knows it should. This'll include global and local variables, the Player's state, the inventory.
For scene objects, data is only saved if AC is explicitly "told" to, via Remember components.
To save an NPC's position, use the dedicated Remember NPC component.
Global and Local variables are automatically saved. For component variables, the Remember Variables component is necessary.
This process can also be automated. The Settings Manager's Auto-add save components to GameObjects? button will have AC go through each of your scenes and (attempt) to attach all the Remember components it believes are necessary.
Thank you very much, now all is crystal clear!
Very much appreciated!