ドキュメント

Unity Engine

Unity Engine

FocusController

Class in charge of managing the focus inside a Panel.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.