Version: Unity 6.0 (6000.0)
Language : English
9-slice your sprite
Add a sprite mask

Masking sprites

To hide parts of sprites, add a spriteA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
See in Glossary
mask to the sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
. You place a sprite maskA texture which defines which areas of an underlying image to reveal or hide. More info
See in Glossary
at a position in the scene, and the mask shape hides the sprites that overlap with it.

Note: Sprite masks are different to the mask map texture you add as a secondary texture to control which areas of a sprite receive light.

Topic Description
Add a sprite mask Add a sprite mask to a scene, change its shape, and configure sprites so they’re affected by the mask.
Sprite Mask component reference Explore the properties you use to hide and reveal parts of sprites with a sprite mask.

Additional resources

9-slice your sprite
Add a sprite mask