docs.unity3d.com
    Show / Hide Table of Contents

    Refine with masking

    Masking provides enhanced control over the output. Use a mask to refine any part of a generated sprite. You can adjust the mask with brush settings and an eraser.

    Refine a sprite

    Use a mask to refine any part of a generated sprite. Adjust the mask with brush settings and an eraser.

    1. Hover your cursor over the sprite that you want to refine, and select the Refine icon to enter the Refinements branch.

      Tip

      You can also double-click a generated sprite in the Generations panel to enter the Refinements branch.

    2. To activate the masking brush, select the Inpaint icon.

    3. To adjust the size of the brush, move the Radius slider.
    4. Paint a mask over the area that you want to refine.
    5. To erase the mask, select Eraser. The eraser uses the same radius as the brush.
    6. Enter a prompt that describes the desired refinement.
    7. Select Generate. This regenerates subjects in the masked area.

      Add a Christmas hat for a dog sprite

    Tip

    You can also double-click a generated sprite in the Generations panel to enter the Refine mode.

    Set as thumbnail

    To set a refined sprite as the thumbnail in the Generations panel for the Refinements branch, in the Refinements panel, right-click the sprite and select Set as Thumbnail.

    To re-enter the Refinements branch from the Generations panel, double-click the thumbnail.

    Create a new refinement branch

    To create a new refinement branch from a refined sprite, in the Refinements panel, right-click the sprite and select Branch. This adds the selected sprite to the Generations panel and creates a new refinement branch with the selected sprite as the root.

    Additional resources

    • Write a prompt
    • Generate sprites
    • Tool reference
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023