Do you by any change use an Asset graph reference instead of a Bound graph for the BehaviourTree?
If the graph is an Asset reference, as per the unity limitation, assets can’t have scene object references.
There are 2 solutions to this. You can either Bind the graph, in which case you will be able to have scene object references as normal, or if you definetely want to use an Asset graph, you can feed the parameter through a Blackboard Variable instead of assigning it directly. Because the Blackboard is a component on your gameobjet in the scene, it CAN have scene object references 🙂
A quick way to create a Dialogue Tree variable would be to select the “Create New” option in the variable selection dropdown:
Let me know if this works for you, or you need any clarification on the matter.
Cheers!
Join us on Discord: https://discord.gg/97q2Rjh
Attachments:
CreateVariable.png
Login
Register
By registering on this website you agree to our Privacy Policy.