# Key Item Element UGUI

## 🔑 KeyItemElementUGUI Class

An element that represents a key item.

> **Namespace:** `Esper.Inventool.UI`\
> **Access:** `public`\
> **Type:** `class`\
> **Inherits:** `MonoBehaviour`

***

### 📦 Fields

| Access   | Field         | Type              | Description               |
| -------- | ------------- | ----------------- | ------------------------- |
| `public` | `button`      | `Button`          | The button.               |
| `public` | `itemStack`   | `ItemStack`       | The item stack reference. |
| `public` | `nameLabel`   | `TextMeshProUGUI` | The name label.           |
| `public` | `amountLabel` | `TextMeshProUGUI` | The amount label.         |

***

### 🧰 Methods

| Access   | Method                         | Returns | Description                                  |
| -------- | ------------------------------ | ------- | -------------------------------------------- |
| `public` | `SetItem(ItemStack itemStack)` | `void`  | Assigns stack, wires hover/click, sets text. |
