Immerseum.VRSimulator Namespace > InputActionManager Class : addInputAction Method |
A properly defined InputAction.
Please Note | |
The InputAction.name property must be unique - if it is not, the method will return false. |
public static bool addInputAction( InputAction action )
A properly defined InputAction.
Please Note | |
The InputAction.name property must be unique - if it is not, the method will return false. |
InputAction actionToRegister = new InputAction(); actionToRegister.name = "myInputAction"; // Other code to configure the InputAction goes here. bool success = InputActionManager.addInputAction(actionToRegister);