Variable Mapping and Dynamic Variables not working in 1.6.7

hexmachina

New member
In Unity 2020.2 I have been running into issues with variables. If I assign a gameobject with a mapped variable it returns null at runtime. The same is true with dynamic variables. I've tried testing this in an empty project and I get the same results. Am I missing something?
Thanks
 
Are you working with prefabs or external trees? The GameObject references will be lost with those - it is related to this:

 
Hey Justin, thank you for the quick response. I'll use this referencing approach for external trees. Dynamic variables don't seem to work in external trees or scene based trees. Is there a way to debug dynamic variables at runtime?
Thanks
 
Same thing for me. I am unable to work with the Dynamic Variables in external trees - with the simple float types, nothing related to referencing scene objects.
 
Are you running the most recent version? I just tested it and dynamic variables work with external tree. I've attached my test case.
 

Attachments

  • Dynamic.unitypackage
    3.3 KB · Views: 4
Top