# 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**

![](https://3353821304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0-KLgOacVpbicrqehO%2F-MI0puXfZTkA_7S4YMmR%2F-MI0vVe7ExW6t8I3G7bF%2FScreen%20Shot%202020-09-24%20at%203.50.55%20PM.png?alt=media\&token=ad4ada39-6371-429c-acba-7b0762ff7240)

### 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](https://3353821304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0-KLgOacVpbicrqehO%2F-MIQRBXzpvVR2Z7ymxuH%2F-MIQUJTIv34WI5Z7R7TC%2FScreen%20Shot%202020-09-29%20at%202.51.31%20PM.png?alt=media\&token=4e1abbe2-a9dc-44cf-90f1-8cf03e7ecdee)

![Select Apply - See Arrow in Image](https://3353821304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0-KLgOacVpbicrqehO%2F-MIQV2bvwvcPnkdKNV1b%2F-MIQVNnCGrOgWIsFzJYF%2FScreen%20Shot%202020-09-29%20at%202.59.41%20PM.png?alt=media\&token=76e1092f-25ba-4661-a93d-a81e62e35679)

#### 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](https://3353821304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0-KLgOacVpbicrqehO%2F-MIp9xtZFTSHzI1_lMvf%2F-MIpAkoHLmRqGlFgVt5d%2FScreen%20Shot%202020-10-04%20at%202.54.57%20PM.png?alt=media\&token=1cc82c28-b3d2-461b-a32e-4adb3f89d52a)

![](https://3353821304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0-KLgOacVpbicrqehO%2F-MIQVz0sIlZRsVx56s7f%2F-MIQYNwfV1W5LXsxTZDv%2FScreen%20Shot%202020-09-29%20at%203.07.27%20PM.png?alt=media\&token=9f7e08b1-352e-4a52-bcdf-8c0daee5b68a)
