Class FocusControllerExtensions
Extension methods for FocusController.
Inherited Members
Namespace: Unity.AppUI .UI
Assembly: solution.dll
Syntax
public static class FocusControllerExtensions
Methods
FocusNextInDirectionEx(FocusController, FocusChangeDirection)
Focus the next element in the given direction.
Declaration
public static Focusable FocusNextInDirectionEx(this FocusController controller, FocusChangeDirection direction)
Parameters
Type | Name | Description |
---|---|---|
Focus |
controller | The focus controller. |
Focus |
direction | The direction to focus. |
Returns
Type | Description |
---|---|
Focusable | The focused element. |
FocusNextInDirectionEx(FocusController, Focusable, FocusChangeDirection)
Focus the next element in the given direction.
Declaration
public static Focusable FocusNextInDirectionEx(this FocusController controller, Focusable currentlyFocusedElement, FocusChangeDirection direction)
Parameters
Type | Name | Description |
---|---|---|
Focus |
controller | The focus controller. |
Focusable | currentlyFocusedElement | The currently focused element. |
Focus |
direction | The direction to focus. |
Returns
Type | Description |
---|---|
Focusable | The focused element. |