isDialouguePlaying()

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ujuj04
Posts: 30
Joined: Sun May 21, 2023 7:34 pm

isDialouguePlaying()

Post 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?
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: isDialouguePlaying()

Post 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.
Post Reply