# Inventory Filter UGUI

## 🔍 InventoryFilterUGUI Class

An inventory filter for uGUI support. Requires Button component.

> **Namespace:** `Esper.Inventool.UI.UGUI`\
> **Access:** `public`\
> **Type:** `class`\
> **Attributes:** `[RequireComponent(typeof(Button))]`\
> **Inherits:** `MonoBehaviour`

***

### 📦 Fields

| Access    | Field      | Type       | Description                              |
| --------- | ---------- | ---------- | ---------------------------------------- |
| `public`  | `button`   | `Button`   | The button component.                    |
| `private` | `image`    | `Image`    | The image that displays the filter icon. |
| `public`  | `itemType` | `ItemType` | The item type. (Hidden in inspector)     |

***

### 🧰 Methods

| Access   | Method                                  | Returns | Description                                                     |
| -------- | --------------------------------------- | ------- | --------------------------------------------------------------- |
| `public` | `SetSprite(Sprite sprite, Color color)` | `void`  | Sets the sprite and tint, enables image when sprite is present. |
