Selection events

The Select event is called when the object is considered the selected object, and Deselect is called when the object is no longer considered selected. Each of these events only fire once—the moment the object is considered selected or deselected. If you want an event that will trigger continuously while the object is selected, you can use the UpdateSelected event. The UpdateSelected event is called every frame.

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.