Page 1 of 1
How to use the button tot set variables?
Posted: Sat Nov 13, 2021 3:13 am
by aliom
I want to complete the quest by changing the boolean value when the button is pressed., but I can't find a way to use the UI button to set variables.
I hope I can get an answer, thanks!
Re: How to use the button tot set variables?
Posted: Sat Nov 13, 2021 8:30 am
by Tony Li
Hi,
If you want to use a UI Button to set a Dialogue System variable, you can connect the UI Button's OnClick() event to a Dialogue System Trigger:
- buttonSetVariable.png (38.8 KiB) Viewed 221 times
Re: How to use the button tot set variables?
Posted: Sat Nov 13, 2021 2:35 pm
by aliom
Tony Li wrote: ↑Sat Nov 13, 2021 8:30 am
Hi,
If you want to use a UI Button to set a Dialogue System variable, you can connect the UI Button's OnClick() event to a Dialogue System Trigger:
buttonSetVariable.png
Thank you so much!
Re: How to use the button tot set variables?
Posted: Sat Nov 13, 2021 2:38 pm
by Tony Li
Glad to help!