Navigation.Focus
Focus(UIBlock, Uint, Object, int)
Moves navigation focus to uiBlock
.
Declaration
public static void Focus(UIBlock uiBlock, uint controlID = 0U, object userData = null, int layerMask = -1)
Parameters
Type | Name | Description |
---|---|---|
UIBlock | uiBlock | The UIBlock used as the starting point for subsequent navigation events. |
Uint | controlID | The unique identifier of the input control generating this Interaction.Update. |
Object | userData | Any additional data to pass along to the receiver of the current interaction. See UserData. |
int | layerMask | The gameobject layers to include, defaults to "All Layers". |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If |