Skip to main content

GDTKItem.CanPerformAction

Declaration#

public bool CanPerformAction(string actionKey)

Parameters#

NameDescription
actionKeyKey of the action to check

Description#

Check if a plugin action can be performed

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(GDTKItem target, string actionName)    {        bool result = target.CanPerformAction(actionName);    }

}