FocusController

class in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Description

Class in charge of managing the focus inside a Panel.

Each Panel should have an instance of this class. The instance holds the currently focused VisualElement and is responsible for changing it.

Properties

Property Description
focusedElement The currently focused VisualElement.

Constructors

Constructor Description
FocusController Constructor.

Public 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.

Did you find this page useful? Please give it a rating: