ControllerMap.HasAction
Declaration#
public bool HasAction(string actionName)Parameters#
| Name | Description |
|---|---|
| actionName | Name of the action to chedk |
Description#
Checks if there is an input map associated with an action name
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(ControllerMap target, string actionPath) { if(target.HasAction(actionPath)) { Debug.Log(actionPath + " is available"); } }
}