docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Generate Texture2D asset with a prompt

    Texture2D Generator generates 2D images that you can use to create a sprite, backdrop, or billboard. For example, you can use a generated image as the albedo texture map of an unlit material on a billboard that represents a tree.

    To generate 2D images using Texture2D Generator, follow these steps:

    1. To open the Texture2D Generator window, right-click an empty area in the Project window.

    2. Select Create > Rendering > Generate Texture 2D.

      Generate window with fields to generate 2D images

    3. To choose a model, select Change.

      The Select Model window opens. It displays the third-party AI models from partners, such as Scenario and Layer. For more information, refer to Choose the right model with the Model Picker.

    4. Filter and search for models by tags or specific training styles, for example, Anime or Cartoon 3D.

    5. Select a model suited for the type of image you want to create.

    6. In the Prompt field, describe the image you want to generate.

      For example, Large tall tree.

    7. To exclude specific elements, enter the keywords in the Negative Prompt field.

      For example, leaves.

      For more information on negative prompts, refer to Remove unwanted elements with negative prompts.

    8. Set the following image properties:

      1. To set the number of images to generate, move the Images slider.

      2. Select the output image size from the Dimensions list.

      3. To specify a custom seed to generate consistent results, enable Custom Seed and enter a seed number.

        Every 2D image you generate has a seed. A seed is a number that you enter or that the tool generates automatically.

        For more information on custom seed, refer to Use custom seed to generate consistent sprites.

    9. Select Generate.

      The generated images appear in the Generations panel. Hover over an image to view details, such as the model used and prompt settings.

      Note

      To generate and assign assets directly, refer to Generate and assign assets with the Object Picker.

      Note

      Texture2D Generator saves all the generated textures in the /GeneratedAssets folder located at the root of your project. These assets remain in that folder until you remove them manually.

    Additional resources

    • Generate Texture2D asset with a prompt
    • Generate window
    • Texture2D
    • Use custom seed to generate consistent sprites
    • Generate and assign assets with the Object Picker
    • Choose the right model with the Model Picker
    • Prompt guidelines for asset generation
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)