Skip to main content

ItemUI.Load

Declaration#

public void Load(GDTKItem item, ItemContainer container)

Parameters#

NameDescription
itemItem to display
containerContainer holding item

Description#

Load data

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void Example(ItemUI target, GDTKItem other)    {        target.Load(other, other.container);    }

}

Declaration#

public void Load(GDTKItem item, ItemContainer container, Sprite overrideSprite)

Parameters#

NameDescription
itemItem to display
containerContainer holding item
overrideSpriteSprite to use instead of the one associated with the Item. Used for Storage Area display

Description#

Load data

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void Example(ItemUI target, GDTKItem other, Sprite image)    {        target.Load(other, other.container, image);    }

}