Skip to main content

GDTKItem.GetPlugins

Declaration#

public List<T> GetPlugins()

Description#

Get a list of plugins of type T

Usage#

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

}

Declaration#

public List<T> GetPlugins(string title)

Parameters#

NameDescription
titleTitle of the plugin(s) to get

Description#

Get a list of plugins of type T

Usage#

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

}