Just to clarify what is going on, it is that by Unity’s standard workflow, Assets (like graph assets are) can not have references to scene object.
And this is the reason why your scene object references are lost.
When you Bind a graph though, it stops being an asset, but is rather “saved” and thus treated as a scene object alongside the owner gameobject and that is the reason why Bound graphs are able to have scene object references.
If you definitely want to use Asset Graphs, the way around this Unity limitation, is to utilize Blackboard Variables instead of directly referencing scene objects within the graph fields.
Because Blackboard, is a component that is attached on the GraphOwner gameobject and is thus saved in the scene (unless of course the owner is a prefab), it IS possible for Blackboard Variables to have scene object references.
Please let me know if this clarifies what is happening, or if you need further explanation or help 🙂
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.