Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Masking sprites

Hide or reveal parts of a sprite or a group of sprites.
Read time 1 minuteLast updated 4 days ago

To hide parts of sprites, add a sprite mask to the scene. You place a sprite mask 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 maskAdd a sprite mask to a scene, change its shape, and configure sprites so they're affected by the mask.
Sprite Mask component referenceExplore the properties you use to hide and reveal parts of sprites with a sprite mask.

Additional resources