FocusChangeDirection
Base class for defining in which direction the focus moves in a focus ring.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IDisposable
public class FocusChangeDirection : IDisposable
Remarks
Focus ring implementations can move the focus in various direction; they can derive from this class to formalize the various ways the focus can change from one element to the other.
Static Properties
Property | Description |
|---|---|
| lastValue | Last value for the direction defined by this class. |
| none | The null direction. This is usually used when the focus stays on the same element. |
| unspecified | Focus came from an unspecified direction, for example after a mouse down. |
Methods
Method | Description |
|---|---|
| Dispose | This method will be called when FocusController has finished treating this focus change directive. If the reference came from a pool, this method can be used to release the data back to the pool. |