Detect playing conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
SealDev
Posts: 85
Joined: Thu Jun 24, 2021 5:45 am

Detect playing conversation

Post by SealDev »

1. How to detect a conversation is playing so that I can't open the pause menu?
2. How to temporarily disable Proximity Selector if player pauses game while close to a usable Dialogue Trigger?
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Detect playing conversation

Post by Tony Li »

SealDev wrote: Sun Aug 01, 2021 3:51 pm1. How to detect a conversation is playing so that I can't open the pause menu?
Check:

Code: Select all

DialogueManager.isConversationActive
SealDev wrote: Sun Aug 01, 2021 3:51 pm2. How to temporarily disable Proximity Selector if player pauses game while close to a usable Dialogue Trigger?
Just disable the ProximitySelector component. Example:

Code: Select all

FindObjectOfType<ProximitySelector>().enabled = false;
SealDev
Posts: 85
Joined: Thu Jun 24, 2021 5:45 am

Re: Detect playing conversation

Post by SealDev »

Solved!
Post Reply