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

Input field default events – On Value Changed (String) and On End Edit (String)

The Input Field component has two default events. The first default event is the On Value Changed Event, as seen in the On Value Changed (String) section of the Input Field component. This event will trigger whenever the text within the Input Field is changed. It accepts a string as an argument, and its use of the argument works in the same way as the On Value Changed events from UI components discussed earlier in this chapter. If you want to pass a parameter to the function, you can select the function from either the Static Parameters list or from the Dynamic string list, depending on how or if you want an argument passed to the function:

On Value Changed Events ...
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