ItemUI.Load
Declaration#
public void Load(GDTKItem item, ItemContainer container)Parameters#
| Name | Description |
|---|---|
| item | Item to display |
| container | Container 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#
| Name | Description |
|---|---|
| item | Item to display |
| container | Container holding item |
| overrideSprite | Sprite 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); }
}