Skip to main content

GDTKItem.GetPlugin

Declaration#

public T GetPlugin()

Description#

Get a plugin of type T

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(GDTKItem target)    {        ItemPlugin result = target.GetPlugin<ItemPlugin>();    }

}

Declaration#

public T GetPlugin(string title)

Parameters#

NameDescription
titleTitle of the plugin to get

Description#

Get a plugin of type T

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(GDTKItem target, string pluginTitle)    {        ItemPlugin result = target.GetPlugin<ItemPlugin>(pluginTitle);    }

}