Reply To: Action losing gameObject reference after build

NodeCanvas Forums Support Action losing gameObject reference after build Reply To: Action losing gameObject reference after build

#11496
Gavalakis
Keymaster

Hello,

As of Unity standard limitation, .asset files can not reference scene object files and this is why an Asset Graph can’t do so as well.
The way around this if you want to use Asset Graphs, is to use Variables. So instead of directly assigning scene object references to action/condition parameters, you can link those parameters to variables (by clicking the radio button)

Because variables are stored in the Blackboard component, which lives in the scene attached on a gameobject, it is possible for them to have scene object references.
Once again, this is just how Unity works 🙂

Let me know if you need any further clarification or help with this (or of course anything else).

Thanks!

Join us on Discord: https://discord.gg/97q2Rjh