docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Modify generated images

    Texture2D Generator provides several post-processing options to refine the generated 2D images. Use the different tabs in the Generate window to modify the generated 2D images.

    Remove background

    Use the Remove BG tab to remove the background elements from the generated image.

    1. In the Generate window, select the Remove BG tab.
    2. Select Remove BG.

    Upscale

    Use the Upscale tab to increase the resolution of the generated image without losing detail.

    1. In the Generate window, select the Upscale tab.
    2. Select Change to choose a model from the Select Model window.
    3. Select Upscale.

    Pixelate

    Use the Pixelate tab to convert the image into a pixel art style.

    1. In the Generate window, select the Pixelate tab.

      Pixelate tab showing the fields to adjust

    2. Adjust the following settings:

      Setting Description
      Size Defines the pixel size.
      Keep Image Size Retains the original image size.
      Sampling Size Sets the number of neighboring pixels to sample.
      Pixelate Mode Selects how the pixelation is applied.

      The following options are available:
      * Centroid: Averages the color of pixels within a grid cell based on their center point. It creates a smooth and balanced pixelation effect.
      * Contrast: Enhances the contrast between adjacent pixels to clearly define the edges.
      * Bicubic: Uses bicubic interpolation to calculate pixel values. The resulting effect is smoother and more natural.
      * Nearest: Assigns the color of the nearest pixel. It produces a sharper pixelation effect.
      * Center: Uses the color of the pixel at the center of each grid cell. It results in a consistent and uniform appearance.
      Outline Thickness Adjusts the thickness of the pixel outline.
    3. Select Pixelate.

    Recolor

    Use the Recolor tab to customize the color palette used in the image.

    1. In the Generate window, select the Recolor tab.

    2. In the Palette Reference field, select the Paint Brush tool.

      The Doodle window opens. Use the following tools:

      Tool Description
      Paint Brush Colors directly on the canvas.
      Eraser Erases existing color from the canvas.
      Paint Fills the canvas with the selected color.
      Color Picker Selects a color from the canvas.
      Brush Size Adjusts the brush size.
      Show BaseImage Previews the original image while you recolor it.
    3. Select Recolor to apply the new color scheme.

    Inpaint

    Use the Inpaint tab to refine specific areas of the image using masking. You can adjust the mask with brush settings and an eraser.

    1. In the Generate window, select the Inpaint tab.

    2. In the Prompt field, specify the object that you want to insert in the area defined by the mask.

      Note

      Don't leave the Prompt field blank.

    3. In the Inpaint Mask field, select the Paint Brush tool.

      The Doodle window opens.

    4. Paint a mask over the area you want to modify.

      For more information on the tools available in the Doodle window, refer to the Recolor section.

    5. Select Generate to regenerate the masked area.

    Additional resources

    • Generate Texture2D asset with a prompt
    • Manage generated images
    • Texture2D
    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)