Skip to main content

SetBlackboardValue.Initialize

Declaration#

public virtual void Initialize(Inventory host, GDTKItem item)

Parameters#

NameDescription
hostInventory hosting the item
itemItem to initialize

Description#

Initialize the plugin

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    // Plugins are automatically initialized by the system when the item is added    // They can be initialized manually if needed    public void ExampleMethod(GDTKItem target, Inventory host)    {        foreach (ItemPlugin plugin in target.GetPlugins<ItemPlugin>())        {            plugin.Initialize(host, target);        }    }
}