April 2018
Beginner
468 pages
11h 7m
English
The Dropdown component handles all interactions with the Dropdown menu itself. The only thing that has to be coded by you is how to interpret the option the player selected.
The Dropdown component's default event is the On Value Changed Event, as seen in the On Value Changed (Int32) section of the Dropdown component. This event will trigger whenever a new option is selected by the player. It accepts an integer as an argument and, as with the other events discussed in this chapter, you can choose to pass no argument, a static argument, or a dynamic argument.
If you want to send the index of the option selected (or the value of the Value property) to a function, you'd send it to a function with ...
Read now
Unlock full access