Page 1 of 1

Is it possible to interrupt an input dialog?

Posted: Sun Jul 14, 2019 9:37 pm
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?

Re: Is it possible to interrupt an input dialog?

Posted: Sun Jul 14, 2019 10:29 pm
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.

Re: Is it possible to interrupt an input dialog?

Posted: Sun Jul 14, 2019 10:52 pm
by AoF
Cool, thanks a lot. I thought this wasn't going to be possible :)