I have a question about instantiating BehaviourTree. The BehaviourTree was created in my resources folder, and I wish to start it in one of my custom action. I load the BehaviourTree like this:
The console shows:
Graph: You have tried to start a graph which is an asset, not an instance! You should Instantiate the graph first.
My question is, how could I bind(or assign, whichever term we use) the BehaviourTree asset onto an empty gameobject using script? Is there something like: gameobject.addcomponent<BehaviourTree>().AssignAsset(behaviourTreeAsset)?