Skip to main content

ControllerMap.HasAction

Declaration#

public bool HasAction(string actionName)

Parameters#

NameDescription
actionNameName 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");        }    }
}