So far its been a great asset, tidy and works perfectly.
However, I have been trying to get my save system to load the node properly but haven’t been able to do so.
I save the node ID and it loads at runtime properly using the following:
There is a complex system behind, but basically before the code above is executed, I set the dialogue tree via this: GetDialogueController.behaviour = loadedDialogueTree;
The DialogueTreeController behavior is empty at the start, I just set everything at runtime, it works, until I manually set EnterNode to enter at runtime.
I made sure to also call EnterNode a couple of frames after in case some initialization had to be done, but still appears like 2 different subtitles fighting each other.
What is the correct way of entering a specific dialogue node at runtime? Thanks in advance!
The best way to achieve this, is to set the “START” node of the dialogue tree (the property is called .primeNode on the graph class), and then start the graph as usual. Just make sure to set the start node before you start the graph.