On my prefab I have a Behavior Tree component referencing external behavior
I can set behavior variables on the prefab and they get serialized correctly, but as soon as I enter play mode they are reverted to defaults from external behavior. When I exit play mode, they're correct again. Note this only happens on a prefab file, not on a prefab instances created in a scene in design mode- I just can't instantiate prefabs correctly in runtime.
In general I wanted to have one external tree referenced in multiple prefab, where I would customize variables. Then I would dynamically instantiate prefab in runtime.
I can set behavior variables on the prefab and they get serialized correctly, but as soon as I enter play mode they are reverted to defaults from external behavior. When I exit play mode, they're correct again. Note this only happens on a prefab file, not on a prefab instances created in a scene in design mode- I just can't instantiate prefabs correctly in runtime.
In general I wanted to have one external tree referenced in multiple prefab, where I would customize variables. Then I would dynamically instantiate prefab in runtime.