[]
        
(Showing Draft Content)

C1.C1Preview.InputActionCollection.Add

Add Method

Add(InputAction)

Adds an element to the current collection.

Declaration
public int Add(InputAction inputAction)
Parameters
Type Name Description
InputAction inputAction

The InputAction to add.

Returns
Type Description
int

The index of the added element in the current collection.

Add(UserActionEnum, ActionHandlerBase)

Creates a new InputAction instance based on the specified user action and handler, and adds it to the current collection.

Declaration
public int Add(UserActionEnum userAction, ActionHandlerBase actionHandler)
Parameters
Type Name Description
UserActionEnum userAction

The UserAction of the new instance.

ActionHandlerBase actionHandler

The ActionHandler of the new instance.

Returns
Type Description
int

The index of the new element in the current collection.