Reply To: Start dialogue tree node loses Dialogue Tree reference after exiting play mode

NodeCanvas Forums Support Start dialogue tree node loses Dialogue Tree reference after exiting play mode Reply To: Start dialogue tree node loses Dialogue Tree reference after exiting play mode

#10515
Gavalakis
Keymaster

Hello,

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:
CreateVariable

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:
  1. CreateVariable.png