Skip to main content

GDTKItem.Initialize

Declaration#

public void Initialize(Inventory inventory, ItemContainer container, bool keepGuid)

Parameters#

NameDescription
inventoryInventory hosting the item
containerContainer holding the item
keepGuidKeep original GUID

Description#

Initialize the object

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(GDTKItem target, Inventory other)    {        target.Initialize(other, other.itemContainer, true);    }

}