Page 1 of 1

Continue dialogue on touch

Posted: Sat Oct 24, 2020 9:11 am
by Pendergast
Hi again !

I was wondering while creating my own UI for Dialogue System (and setting up the continue button) ; is there any way to make it work for phone ? I want the dialog to continue when the player touches the phone's screen. Do i have to use the continue button and take off all the images and set the alpha to 0, or is there any other way to do so ?

Thank you in advance !

Re: Continue dialogue on touch

Posted: Sat Oct 24, 2020 10:34 am
by Tony Li
You can add a script to continue -- call (DialogueManager.dialogueUI as StandardDialogueUI).OnContinue; -- but it's easiest to use the continue button. Make it cover the whole screen, and set the alpha to zero like you said.

Re: Continue dialogue on touch

Posted: Sat Oct 24, 2020 10:38 am
by Pendergast
Thank you, Tony !

Now that I think about it, I also have a small question regarding the alert panel !

I activated it during conversations and I'd like to prevent the alert window from disappearing when the player click on continue (and therefore let it disappear by itself, which it already does: but if I click on continue before it's completely disappeared, it disappears on this click, wich i want to deactivate.)

Re: Continue dialogue on touch

Posted: Sat Oct 24, 2020 10:54 am
by Tony Li
Hi Caroline,


If your continue button has a Standard UI Continue Button Fast Forward component, untick 'Continue Alert Panel'.

If the continue button's OnClick() event instead calls the dialogue UI directly, change it from StandardDialogueUI.OnContinue to StandardDialogueUI.OnContinueConversation.

Re: Continue dialogue on touch

Posted: Sat Oct 24, 2020 11:02 am
by Pendergast
The first one worked, thank again, Tony !

Re: Continue dialogue on touch

Posted: Sat Oct 24, 2020 11:34 am
by Tony Li
Happy to help!