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.
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().