Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Focusable

Base class for objects that can get the focus.
Read time 1 minuteLast updated 4 days ago

Definition

public abstract class Focusable : CallbackEventHandler, IEventHandler

Remarks

The focus is used to designate an element that will receive keyboard events.

Properties

Property

Description

canGrabFocusReturn true if the element can be focused.
delegatesFocusWhether the element should delegate the focus to its children.
focusableTrue if the element can be focused.
focusControllerReturn the focus controller for this element.
tabIndexAn integer used to sort focusables in the focus ring. Must be greater than or equal to zero.

Methods

Method

Description

BlurTell the element to release the focus.
FocusAttempt to give the focus to this element.

Inheritance