Reply To: 2.6.2 DialogueTree API Migration from previous version

Forums 💬 NodeCanvas ⚙️ Support 2.6.2 DialogueTree API Migration from previous version Reply To: 2.6.2 DialogueTree API Migration from previous version

#18228
Gavalakis
Keymaster

    Hello,

    Indeed there were some breaking changes in Dialogue Trees but these really had to be done to support Unity 5.5. I am really sorry for that.
    Basically, the change is that DialogueTree is no longer “attached” to a gameobject and has been replaced with DialogueTreeController (which holds a reference to a DialogueTree object) very similar to how it is done with BehaviourTreeOwner and FSMOwner.

    All the methods have been moved from DialogueTree class, to DialogueTreeController class. So for example this:
    gameObject.GetComponent<DialogueTree>().StartDialogue(), has to be replaced with:
    gameObject.GetComponent<DialogueTreeController>().StartDialogue().

    Please let me know if you need further help.
    Thanks a lot.