TextMeshPro - Input Field default events – On Select (String) and On Deselect (String)

The TextMeshPro - Input Field has four default events: the On Value Changed Event, the On End Edit Event, the On Select Event, and the On Deselect Event, as shown in the On Value Changed (String), On End Edit (String), On Select (String), and On Deselect (String) sections.

The first two events, the On Value Changed Event and the On End Edit Event, are the same as those presented in the UI Input Field.

The third event is the On Select Event. This event fires whenever the TextMeshPro - Input Field is selected. The fourth event is the On Deselect Event. As you would expect, the event fires whenever the TextMeshPro - Input Field is deselected. It works similar ...

Get Mastering UI Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.