Hi, I'm using AC v1.62.6, Unity 2018.1.2.
I'm a bit stuck.. I've got a global var that is changed to 'true' by script, and if I Debug.Log the variable it shows the right value but in the Adventure Creator GUI it still shows set to 'false'. I've tried setting it in multiple spots in the code without change in behavior. If I leave and re-enter the scene, the other variables are all still set properly except this one boolean. I've tried creating a new boolean and setting that instead but get the same issue. I've started using presets so I'm wondering if there's something about how they work that might be resetting the var or something? I'm at a loss
I set lots of global and local vars via script and this is the only one giving me grief. If I start it off as 'true' it stays 'true' but I need it to flip part-way during the scene. The code is short, and the rest of it is functioning, I've attached a picture of the log output and the highlighted var remaining unchanged:
AC.GlobalVariables.SetBooleanValue(23, true);
Debug.Log(AC.GlobalVariables.GetBooleanValue(23));
Thanks in advanced for taking a look!
Comments
it occurs twice, once with less of a backtrace:
Not sure if you have suggestions on where to go from here or if this is enough information? I'm guessing that's it not loading the saved variables.. but when I changed to the other scene it worked fine, it's just returning to this one where I lose the vars.
Thanks!