Reply To: Passing information between Dialogue Tree and Scene

NodeCanvas Forums General Discussion Passing information between Dialogue Tree and Scene Reply To: Passing information between Dialogue Tree and Scene

#12838
Gavalakis
Keymaster

Hey,

Yes, you can pause a currently running DialogueTree, by having a reference to the DialogueTreeController component and then calling:

To continue on a paused DialogueTree, you can similarly call:

( StartBehaviour will either start the dialogue if it’s not running, or continue from wherever it was paused if at all )

The above examples get the DialogueTreeController component from the same gameobject the example script is attached, thus in this case that example script code should be attached on the same gameobject that DialogueTreeController is found, but that is of course not necessary to do it that way. 🙂

Let me know if the above help, or if you need any further clarifications.
Thanks!

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