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.

    1. Hover your cursor over the sprite that you want to refine. The Refine icon appears.
    2. Select the Refine icon to enter the Refine mode.
    3. To activate the masking brush, select Inpaint.
    4. To adjust the size of the brush, move the Radius slider.
    5. Paint a mask over the area that you want to refine.
    6. To erase the mask, select Eraser. The eraser uses the same radius as the brush.
    7. Enter a prompt that describes the desired refinement.
    8. 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.

    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