Behavior Tree variables not saving correctly.

WildStyle

New member
Hello there,

Great asset, love it -- I'm running into an issue in Unity 2018.2.14f1 (64-bit), whereby I'm using external behaviors with variables. When setting some shared variables, GameObject or bool etc., they don't get saved / persisted when the scene loads next time.

So for example: I'll select the behavior parent, assign a GameObject in the variables and save Unity. Re-open the scene and the variable for GameObject is empty again.

Any idea why this would happen?

// WildStyle
 
Thanks for the link - so my object is not a prefab, however I still thinks it's related.

Weird thing is that some of the variable values on the same behavior do save / persist, but others not.

Anyway - so I'll add a script to populate the values at run-time, thanks!

// WildStyle
 
Definitely some weird nuances with the prefabs in Unity. Adding a script to populate variables at run-time, works great.

// WildStyle
 
Top