Skip to main content

InWorldContainer.GetItemByInstanceId

Declaration#

public virtual GDTKItem GetItemByInstanceId(string instanceId)

Parameters#

NameDescription
instanceIdId to get

Description#

Get an item by its instance id

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(InWorldContainer target, string other)    {        GDTKItem result = target.GetItemByInstanceId(other);    }}