GDTKItem.Initialize
Declaration#
public void Initialize(Inventory inventory, ItemContainer container, bool keepGuid)Parameters#
| Name | Description |
|---|---|
| inventory | Inventory hosting the item |
| container | Container holding the item |
| keepGuid | Keep 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); }
}