Class FocusController
Class in charge of managing the focus inside a Panel.
Namespace: UnityEngine.UIElements
Syntax
public class FocusController : object
Remarks
Each Panel should have an instance of this class. The instance holds the currently focused VisualElement and is responsible for changing it.
Constructors
FocusController(IFocusRing)
Constructor.
Declaration
public FocusController(IFocusRing focusRing)
Parameters
Type | Name | Description |
---|---|---|
IFocusRing | focusRing |
Properties
focusedElement
The currently focused VisualElement.
Declaration
public Focusable focusedElement { get; }
Property Value
Type | Description |
---|---|
Focusable |