VisualElementFocusRing
Implementation of a linear focus ring. Elements are sorted according to their focusIndex.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IFocusRing
public class VisualElementFocusRing : IFocusRing
Constructors
Constructor | Description |
|---|---|
| VisualElementFocusRing(UnityEngine.UIElements.VisualElement,UnityEngine.UIElements.VisualElementFocusRing.DefaultFocusOrder) | Constructor. |
Properties
Property | Description |
|---|---|
| defaultFocusOrder | The focus order for elements having 0 has a focusIndex. |
Methods
Method | Description |
|---|---|
| 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. |
Enums
Enum | Description |
|---|---|
| VisualElementFocusRing.DefaultFocusOrder | Ordering of elements in the focus ring. |