Focusable
Base class for objects that can get the focus.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: CallbackEventHandler
- Implements: IEventHandler
public abstract class Focusable : CallbackEventHandler, IEventHandler
Remarks
The focus is used to designate an element that will receive keyboard events.
Properties
Property | Description |
|---|---|
| canGrabFocus | Return true if the element can be focused. |
| delegatesFocus | Whether the element should delegate the focus to its children. |
| focusable | True if the element can be focused. |
| focusController | Return the focus controller for this element. |
| tabIndex | An integer used to sort focusables in the focus ring. Must be greater than or equal to zero. |
Methods
Method | Description |
|---|---|
| Blur | Tell the element to release the focus. |
| Focus | Attempt to give the focus to this element. |