IsAxisDefined
bool IsAxisDefined(string axisName) bool IsAxisDefined(int axisHash)
Parameters
axisName: The name of the axis, as defined in SetAxis().
axisHash: The hashcode of the name of the axis, as defined in SetAxis().
Returns
bool: Returns true if axisName or axisHash exists.
Description
Use this to determine if an axis exists by the name of axisName or the hashcode of axisHash.
Note that you will probably never need to use this method unless you are a developer making a separate script/plugin and you want to make it compatible with cInput.
Example
Last updated
Was this helpful?