Variables disappearing at runtime

NeedsLoomis 4 years ago updated by Lazlo Bonin (Lead Developer) 4 years ago 11

After updating to 1.0.5 my scene variables disappear at runtime.  They disappear from the variables window, and my units throw the standard "Variable not found" error.  After stopping the game they return to the windows and my units don't show any issues.

Seems fine with object variables, and I can't reproduce in a new project.  Any ideas?

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

I had that too. 

Still not able to recreate. To fix it delete the scene variable gameobject. 

Bolt will create a new one, that will work again.

Pending Review

Seems like a regression introduced when fixing additive scene load with scene variables (#472). I'll look into it.

To be clear, they only disappear when you press play, but come back when you exit playmode?

Thanks Elin!

Yeap, every time I press play it goes blank, comes back when I stop the game.

Unfortunately the problem came back again :(

I can't reproduce this no matter how much I try... can one of you send me a test scene? (Even then I'm not sure it'll reliably happen... seems to have to do with some Unity load ordering voodoo).

Pending Review

I changed the code a little bit for the next version, hopefully it helps. Please send me a test scene if you can reliably reproduce it from there. I'll wait for this to publish the next bugfix release, so please send it ASAP!

Alrighty, I'll see if I can isolate it

Stripped away my game and managed to isolate down to single, seemingly average, unit.  Hope this helps!


Fixed in Alpha

I think I got it fixed for next version.