Skip to Content
Mastering UI Development with Unity
book

Mastering UI Development with Unity

by Dr. Ashley Godbold
April 2018
Beginner content levelBeginner
468 pages
11h 7m
English
Packt Publishing
Content preview from Mastering UI Development with Unity

Toggle default event – On Value Changed (Boolean)

The Toggle component's default event is the On Value Changed Event, as seen in the On Value Changed (Boolean) section of the Toggle component. This event will trigger whenever the toggle is selected or deselected. It can accept a Boolean argument.

When a public function has a Boolean parameter, it will appear twice within the function's drop-down list of On Value Changed (Boolean) events: once within a Static Parameter list and again within the Dynamic bool list, as shown in the following screenshot:

If the function is selected from the Static Parameters list, a checkbox will appear as an argument ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Game Development with Unity for .NET Developers

Game Development with Unity for .NET Developers

Jiadong Chen
Unity UI Cookbook

Unity UI Cookbook

Francesco Sapio

Publisher Resources

ISBN: 9781787125520Supplemental Content