Unity Visual Scripting

Enable Unity Visual Scripting

From Settings Window check Unity Visual Scripting and press the Save button.

Supported UVS Nodes

  • Open Calendar

  • Timer Button Clicked

  • Get Remaining Time

The above UVS nodes' behavior is equivalent to corresponding methods from CompleteAPI.

The above UVS nodes are located inside DailyRewardsUVS script as shown below:

Open Calendar

Make sure to create an event called: CalendarButtonClicked to work.

Custom event arguments

NameDetails

Arg. 0

clicked day number

Arg. 1

clicked day reward

Arg. 2

clicked day sprite

Here is the complete graph. Associate it with a button.

Timer Button

Make sure to create an event called: TimerButtonClicked to work.

Custom event arguments

NameDetails

Arg. 0

TimerButtonID enum - represents the clicked button

Arg. 1

bool - time expired

For a scene with 3 buttons

The graph looks like this

Last updated