Do you have a recommended or built-in way to capture a failed attempt to start a conversation? (Let's say the conversation doesn't exist in the database)
eg:
DialogueManager.StartConversation("no_such_conversation");
Right now it's an exception. Should I wrap the call in try-catch?
Capturing failed conversation request?
Re: Capturing failed conversation request?
Hi,
It's not an actual exception; it's just a Debug.LogWarning() message.
You could check if a conversation is active:
Or you could check if the conversation exists first:
It's not an actual exception; it's just a Debug.LogWarning() message.
You could check if a conversation is active:
Code: Select all
DialogueManager.StartConversation("no_such_conversation");
if (!DialogueManager.isConversationActive) Debug.Log("Failed to start conversation");
Code: Select all
if (DialogueManager.masterDatabase.GetConversation("no_such_conversation"))
{
DialogueManager.StartConversation("no_such_conversation");
}
Re: Capturing failed conversation request?
You always have a solution! Awesome!