Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
isActionRegistered Method
Example 
A string corresponding to InputAction.name.
Returns whether an InputAction whose InputAction.name matches name is registered (i.e. contained in inputActionList).
Syntax
public static bool isActionRegistered( 
   string name
)

Parameters

name
A string corresponding to InputAction.name.

Return Value

true if an InputAction with matching name is present on the inputActionList, false if not.
Example
Checks whether "myInputAction" is registered (which it is), and then checks whether "otherInputAction" is registered (it is not).
InputAction myInputAction = new InputAction();
myInputAction.name = "myInputAction";
 
InputAction otherInputAction = newInputAction();
otherInputAction.name = "otherInputAction";
 
InputActionManager.addInputAction(myInputAction);
 
bool isMyInputActionRegistered = InputActionManager.isActionRegistered("myInputAction");
// Returns true.
 
bool isOtherInputActionRegistered = InputActionManager.isActionRegistered("otherInputAction");
// Returns false.
See Also

Reference

InputActionManager Class
InputActionManager Members

 

 


Copyright (c) 2016-2017 Immerseum Inc. All rights reserved.

Send Feedback