# UI Images: Sprite Sheets

## Unity Sprite Editor, Sprite Sheets

In this section we'll do a brief overview of how to use the **Unity Sprite Editor** to create single sprites from a sprite sheet.

GameArt2D has some free GUI Sprite Sheets.

{% embed url="<https://www.gameart2d.com/freebies.html>" %}

&#x20;

### Import Sprite Sheet

* **Import a sprite sheet** into your Unity Assets.
* **Select the image** in Assets folder
* **Modify inspector values:**
  * Select **Sprite Mode: Multiple**
  * Select Button:  **Sprite Editor**

![](/files/-MI0vVe7ExW6t8I3G7bF)

### Sprite Editor

Instructions:  Open the image in the Sprite Editor, Go to the Slice Option, Use Automatic Type, Select Slice Button.  Finally, Select Apply and close the SpriteEditor window.  Now each sprite should show up as an individual sprite in the project assets.

![In the Sprite Editor, Slice Automatic](/files/-MIQUJTIv34WI5Z7R7TC)

![Select Apply - See Arrow in Image](/files/-MIQVNnCGrOgWIsFzJYF)

#### Use Images for Button and Panel Image Component

#### Configure Button Component Sprite-Swap Transition

![The Button's Image Component, and Button Component Show Use of Sprite -Swap](/files/-MIpAkoHLmRqGlFgVt5d)

![](/files/-MIQYNwfV1W5LXsxTZDv)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kdoore.gitbook.io/cs2335/project-2-statemanager/optionpanel-prefab/ui-images-sprite-sheets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
