Class FocusControllerExtensions
Extension methods for FocusController.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.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 |
---|---|---|
FocusController | controller | The focus controller. |
FocusChangeDirection | 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 |
---|---|---|
FocusController | controller | The focus controller. |
Focusable | currentlyFocusedElement | The currently focused element. |
FocusChangeDirection | direction | The direction to focus. |
Returns
Type | Description |
---|---|
Focusable | The focused element. |