Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FocusController

Class in charge of managing the focus inside a Panel.
Read time 1 minuteLast updated 4 days ago

Definition

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

focusedElementThe currently focused VisualElement.

Methods

Method

Description

IgnoreEventInstructs the FocusController to ignore the given event. This will prevent the event from changing the current focused VisualElement or triggering focus events.