2.6.2 DialogueTree API Migration from previous version

NodeCanvas Forums Support 2.6.2 DialogueTree API Migration from previous version

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11649
    zsoik
    Participant

    The DialogueTree API seem to have some breaking changes in 2.6.2. I couldn’t find a migration guide in either the readme or quickstart, and the 2.6.2 project upgrade from the menu bar didn’t help either.

    Most problematic issue: The “StartDialogue” method mentioned in the documentation seems to be gone.
    (Because our game logic depends on this call to start dialogues, I couldn’t investigate further. Maybe more is broken)

    #11660
    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.

    Join us on Discord: https://discord.gg/97q2Rjh

    #11664
    zsoik
    Participant

    Thanks! We could upgrade our logic and it’s working without problems so far! Also totally appreciate the sub dialog feature, will be a good tool to clean up our messy large conversations 🙂

    #11668
    Gavalakis
    Keymaster

    You are very welcome!
    I am very glad everything is working for you thus far 🙂
    The SubDialogue Tree can indeed be useful for cleaning up large trees. I am very glad you like it!

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.