Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

UIInventorySlot.cs

Erik edited this page Apr 24, 2019 · 1 revision

Dependencies (What do I need to include to use this script in another projec?):
  • ItemInstance
Public Methods:
  • ClearSlot() - Resets the slot to show "no item".
  • CreateSlot(ItemInstance item) - Assigns the item to the slot and displays the image representing that item.
  • Clicked() - Utilizes the item attached to this slot.
Public Events:
  • None
Configurable Fields:
  • Image - UI Element that displays the item's image. (Note: not the UI Image component of the slot, but the image element that will display the item's sprite)
General Overview:

Provides update functionality and interactability to a UI image that represents an item.

Clone this wiki locally