Page 1 of 1

Delay before hidding response menu

Posted: Wed Jun 05, 2024 10:12 am
by OwlionDemanix
Hello,

I would like the response menu not to close automatically when I click on a response.
Instead, I would like to let one of my script do some stuff, and then trigger manually to hide the response menu and to continue the conversation.
Can I handle it with a sequence ?

Thank you in advance.

Re: Delay before hidding response menu

Posted: Wed Jun 05, 2024 10:37 am
by Tony Li
Hi,

If you assign your own method to the response button's UI Button component > OnClick() event, the StandardUIResponseButton component will not automatically add its own OnClick() method to the Button's OnClick() event at runtime. Your method can do whatever you want first. When it's done, manually call the response button's StandardUIResponseButton.OnClick() method. This will close the response menu and send the response to the Dialogue System.

Re: Delay before hidding response menu

Posted: Wed Jun 05, 2024 11:07 am
by OwlionDemanix
Thank you!

Re: Delay before hidding response menu

Posted: Wed Jun 05, 2024 12:07 pm
by Tony Li
Glad to help!