DialogueTree: SetActorReference in runtime fails to update the dialogue tree

NodeCanvas Forums Support DialogueTree: SetActorReference in runtime fails to update the dialogue tree

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15951
    blokymose
    Participant

    Assigning actors to a dialogueTree’s actorParameters in the runtime causes the dialogue tree inside the Project to be updated, but the dialogue tree inside the Scene to retain the old version of the dialogue tree.

    assignActor.jpg: shows my code, BeginDialogue()

    runtime.jpg: shows what happened to the dialogue tree inside the Scene (on the left) and to the dialogue tree inside the Project (on the right) after BeginDialogue() is called.

     

    How can I resolve this issue?

    Attachments:
    You must be logged in to view attached files.
    #15958
    blokymose
    Participant

    I’ve kinda found the solution.

    So, the DialogueTree that I have modified before starting the dialogue and the DialogueTree that is passed via OnDialogueStarted(DialogueTree tree) are different. The modification doesn’t apply to the DialogueTree that is played. The solution, then, is to use the DialogueTree that I have modified right after the modification, instead of waiting for OnDialogueStarted().

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.