Page 1 of 1

isDialouguePlaying()

Posted: Tue Jun 06, 2023 1:40 pm
by ujuj04
Hey, is there a check in the system that would go something among the lines of isDialouguePlaying()? I have scripts that should work only when a dialogue is playing. Is there a built-in method for scripts that does this?

Re: isDialouguePlaying()

Posted: Tue Jun 06, 2023 3:14 pm
by Tony Li
Hi,

Yes, check DialogueManager.isConversationActive.

You can also hook into the C# events DialogueManager.instance.conversationStarted and conversationEnded, or the special script methods OnConversationStart and OnConversationEnd.