VisualElementFocusRing
Implementation of a linear focus ring. Elements are sorted according to their focusIndex.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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. |