Forum rules - please read before posting.

[Bug] Remember Data

Some remember data scripts get their data overwritten by their initial values. I am talking about remember scripts which have additional settings like for example RememberHotspot with its "Hotspot state on start:". The data gets loaded and awake gets executed afterwards which causes the data to be overwritten. As far as my digging uncovered the culprit most likely is the OnLevelWasLoaded within SaveSystem as there is no guarantee that OnLevelWasLoaded will execute after awakes of other scripts. A check whether there was any data already loaded before executing the awake script at a glance seems to be the simplest and safest solution.

Comments

  • Thanks for the report.  Annoyingly I haven't seen this occur myself - I suspect Unity varies it's Script Execution Order from machine to machine (unless you enforce it).  I may ask you to run a test once I've looked into it.
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.