FocusController
Class in charge of managing the focus inside a Panel.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public class FocusController
Remarks
Each Panel should have an instance of this class. The instance holds the currently focused VisualElement and is responsible for changing it.
Additional Resources: IPanel
Constructors
Constructor | Description |
|---|---|
| FocusController(UnityEngine.UIElements.IFocusRing) | Constructor. |
Properties
Property | Description |
|---|---|
| focusedElement | The currently focused VisualElement. |
Methods
Method | Description |
|---|---|
| IgnoreEvent | Instructs the FocusController to ignore the given event. This will prevent the event from changing the current focused VisualElement or triggering focus events. |