Is it possible to interrupt an input dialog?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

Is it possible to interrupt an input dialog?

Post by AoF »

This is so un-useful as a feature, I doubt it's built in. In my game, I want to have a gag where the main character is asked for his name, and as the player types it in, it gets interrupted and the person asking says, "Whatever, we don't have time for this," and then it's a running gag that the main character has no name.

Is there any way to close the input dialog after a person types one character?
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Is it possible to interrupt an input dialog?

Post by Tony Li »

It would require a tiny bit scripting. Hook up a script method to the InputField's OnValueChanged() event. In the method, call the dialogue UI's OnContinue() method.
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

Re: Is it possible to interrupt an input dialog?

Post by AoF »

Cool, thanks a lot. I thought this wasn't going to be possible :)
Post Reply