How to Tell If Conversation Exists

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
junwi21
Posts: 35
Joined: Wed Jan 27, 2021 12:18 am

How to Tell If Conversation Exists

Post by junwi21 »

Is there a way to tell if a conversation exists by the name?
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to Tell If Conversation Exists

Post by Tony Li »

Hi,

Try GetConversation:

Code: Select all

if (DialogueManager.masterDatabase.GetConversation("XYZ") != null)
{
    Debug.Log("Conversation 'XYZ' exists.");
}
Post Reply