---
title: "Generate sprites with Muse"
content_type: tutorial
url: "https://learn.unity.com/tutorial/generate-sprites-with-muse?language=en"
language: en
difficulty: foundational
unity_version:
  - "2022.3"
supported_unity_versions:
  - name: "2022.3"
    url: "https://learn.unity.com/tutorial/generate-sprites-with-muse.md?language=en&version=2022.3"
last_updated: "2026-08-04T14:21:58.000Z"
---

# Generate sprites with Muse

Explore how to generate sprite images with Muse Sprite Generator prompts and add the created sprites directly to your Unity project.

The Muse Sprite Generator is a tool that uses machine learning to generate sprites based on the prompt you enter. You can set the number of sprites to generate. You can also apply the generated sprites directly to objects in your Scene view..

In this tutorial, you will learn to do the following:

- Generate a sprite image using prompts in Muse.
- Add a sprite from Muse to your Unity project.

## 1. Overview

The Muse Sprite Generator is a tool that uses machine learning to generate sprites based on the prompt you enter. You can set the number of sprites to generate. You can also apply the generated sprites directly to objects in your Scene view..

In this tutorial, you will learn to do the following:

- Generate a sprite image using prompts in Muse.
- Add a sprite from Muse to your Unity project.

## 2. Before you begin

Complete the previous tutorials in this course, and have that project open in the Unity Editor.

In the Unity Editor, go to the main menu and open **Muse** > **New Sprite Generator**. If you don't see that option, then you need to install the Muse Sprite package, following one of these methods:

- Go to the [**Muse Explore page**](https://unity.com/products/muse/onboarding) in a web browser, and select **Sprite**. For detailed steps, refer to [**Add Muse packages to your project**](https://learn.unity.com/tutorial/set-up-your-muse-game-project#6665d121edbc2a425db944c6).
- Follow the instructions to [**Install a Unity package by name**](https://learn.unity.com/tutorial/65f8a6e3edbc2a545fc44bd3?uv=2022.3#65f8c821edbc2a516f60c932), using the name **com.unity.muse.sprite**.

## 3. What are sprites?

In Unity, sprites refer to 2D images or animations that are used for rendering graphics. They are typically utilized for characters, objects, and backgrounds in 2D games or for UI elements in 2D interfaces.

In this project, you're going to create a sprite of autumn leaves on the ground to be used as a decal in the scene. **Decals** add details to surfaces in a realistic way. They are typically used to represent things like signs, graffiti, dirt splatters, worn-out paint, bullet holes, and more. You can read more about decals in the [Unity Documentation](https://docs.unity3d.com/2022.3/Documentation/Manual/visual-effects-decals.html#decals-and-projectors).

## 4. Generate a Sprite

Next, you'll generate a sprite to use as a decal in the scene.

Currently, decals are used to show cherry blossom leaves on the ground in the scene.

![](https://connect-mediagw.unity.com/h1/20240610/learn/images/a891016f-3c8a-488c-b477-13c67bae55ad_flowerpetals.png)

You will generate a different leaf decal and replace the cherry tree leaves.

![](https://connect-mediagw.unity.com/h1/20240610/learn/images/e53f6065-6e67-4739-b857-34962d5bfdf1_NewLeavesDecal.png)

We've provided an example, but use your own ideas to generate any sprite you like as a new covering for the ground.

**1.**  From the Unity Editor's main menu, select **Muse** > **New Sprite Generator** to open the **Muse Generator** window. Resize or dock the window as you see fit.

![](https://connect-mediagw.unity.com/h1/20240610/learn/images/bed0575f-6a3d-4ce4-9bd6-591062559a47_NewSpriteGeneratorPanel.png)

**2.**  Set the number of sprite variations you wish to generate at a time. Each of the generated images will be a slightly different version of the sprite based on the prompt.

![](https://connect-mediagw.unity.com/h1/20240610/learn/images/e615fa63-5210-4a2e-b328-7b9728acf3d4_NumberOfSprites.png)

**3.**  Add a prompt for your sprite.

In our example, we'll use: "Collection of autumn leaves on the ground."

![](https://connect-mediagw.unity.com/h1/20240610/learn/images/22d24d58-d85a-41c7-b4c2-e581311b58d1_SpritePrompt.png)

**4.**  Add negative prompts if you specifically want to remove or avoid elements in a sprite.

We'll enter "no soil" so that only leaves are generated.

![](https://connect-mediagw.unity.com/h1/20240610/learn/images/9c383c9e-4888-4465-9c37-20284d0bb873_SpriteNegativePrompt.png)

**5.**  Enable the **Remove Background** option to ensure that your sprites have an alpha map applied, which will make any empty areas transparent.

![](https://connect-mediagw.unity.com/h1/20240610/learn/images/74da7b78-7199-4789-b626-6235783b7b67_RemoveSpriteBackgrnd.png)

**6.**  Select **Generate** to start the sprite generation process

![](https://connect-mediagw.unity.com/h1/20240610/learn/images/53d10146-c5e0-4ada-bc70-25a81f741c57_SpriteGenerateButton.png)

**7.**  If you are happy with the generated images, you can export them as sprites to your project, or run the generation again for more options.

To export, right-click on the image you wish to use, the select **Export**.

![](https://connect-mediagw.unity.com/h1/20240610/learn/images/ae819904-a6a3-43bd-b688-c5f216f42a07_ExportSprite.png)

**8.**  Give the sprite a name and save it in the **Assets folder**.

**9.**  In the **Assets** folder, select the sprite you just generated. Notice in the **Inspector** that the **Texture type** is already set to **Sprite (2D and UI)**. This means it is ready to use as a sprite in your project.

## 5. Override the existing leaves

Let's apply the new sprite as the texture in the material that is already in use on the ground.

**1.**  In the Assets folder, go to the **Assets** > **Scenes** > **Garden** > **Art** > **Terrain** > **Materials** folder.

**2.**  Select the **CherryPetalDecal_Mat** material.

**3.**  From the **Project** window, drag the sprite you created into the **Inspector** window, to the **Base Map** property, to replace the current cherry blossoms sprite.

**4.**  Disable the **WorldSpaceUVs** option and adjust the scale until you are happy with the result.

![](https://connect-mediagw.unity.com/h1/20240610/learn/images/8700c83a-c72b-4bff-bc95-a4618b4a00fd_NewSpritesAdded.png)

## 6. Next steps

Now you know the basic features of Muse's sprite generator, and you can easily create your own sprites for UI, decals, or 2D characters.  In the next tutorial, you'll use Muse to add animations to a character.
