Skip to main content

ItemContainer.RemoveItemByInstance

Declaration#

public virtual void RemoveItemByInstance(string instanceId, Int32 count)

Parameters#

NameDescription
instanceIdId of the instance
countCount to remove

Description#

Remove an item

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(ItemContainer target, GDTKItem other)    {        target.RemoveItemByInstance(other.instanceId, 1);    }
}