How to use the button tot set variables?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
aliom
Posts: 4
Joined: Sat Nov 13, 2021 3:06 am

How to use the button tot set variables?

Post 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!
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to use the button tot set variables?

Post 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
buttonSetVariable.png (38.8 KiB) Viewed 219 times
aliom
Posts: 4
Joined: Sat Nov 13, 2021 3:06 am

Re: How to use the button tot set variables?

Post 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!
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to use the button tot set variables?

Post by Tony Li »

Glad to help!
Post Reply