Forum rules - please read before posting.

TintMap doesn't load and resets for FollowTintMap after change scene

There is a hero that maintains its state between scenes (located in DontDestroyOnLoad), which contains the components RememberVisibility and FollowTintMap.
At a certain point TintMap changes on the scene, (using ChangeTintMap). it works normal, the hero interacts with it correctly. But if he go to another scene and then return, the values ​​for FollowTintMap are reset and the hero has incorrect values, TintMap becomes the one set by default for the scene, instead of the one that should be active now.
Is it possible to correctly load previously saved data for the FollowTintMap component when changing scenes, so that the LoadData (VisibilityData data) method is invoked? Or do i need to explicitly set this each time when I return to the scene using ActionTintMap for that?
Thanks

Comments

  • edited March 2019

    The Remember Visibility component is used to track changes made to a FollowTintMap component.

    However, it will not restore data when attached to a scene-surviving Player switches scene through natural gameplay. This is by design: the majority of save data on a Player should only be loaded when loading a save game.

    In this case, though, the data is linked to the specific scene - so you will need to explicitly set this change when the scene begins.

    Be aware, however, that an alternative to changing which Tint Map a Follow Tint Map is mapped to. Through animation, you can change the graphic of the scene's default Tint Map, and then save that animation state via the Remember Animator component. This would be more beneficial since other characters in the scene would also be affected.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.