[]
Adds an element to the current collection.
public int Add(InputAction inputAction)
Public Function Add(inputAction As InputAction) As Integer
| Type | Name | Description |
|---|---|---|
| InputAction | inputAction | The InputAction to add. |
| Type | Description |
|---|---|
| int | The index of the added element in the current collection. |
Creates a new InputAction instance based on the specified user action and handler, and adds it to the current collection.
public int Add(UserActionEnum userAction, ActionHandlerBase actionHandler)
Public Function Add(userAction As UserActionEnum, actionHandler As ActionHandlerBase) As Integer
| Type | Name | Description |
|---|---|---|
| UserActionEnum | userAction | The UserAction of the new instance. |
| ActionHandlerBase | actionHandler | The ActionHandler of the new instance. |
| Type | Description |
|---|---|
| int | The index of the new element in the current collection. |