This version of Unity is unsupported.

VisualElementFocusRing

class in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule


Implements interfaces:IFocusRing

Description

Implementation of a linear focus ring. Elements are sorted according to their focusIndex.

Properties

defaultFocusOrder The focus order for elements having 0 has a focusIndex.

Constructors

VisualElementFocusRing Constructor.

Public Methods

GetFocusChangeDirection Get the direction of the focus change for the given event. For example, when the Tab key is pressed, focus should be given to the element to the right in the focus ring.
GetNextFocusable Get the next element in the given direction.