Sprite Masks are used to either hide or reveal parts of 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 or group of sprites. The Sprite MaskA texture which defines which areas of an underlying image to reveal or hide. More info
See in Glossary only affects objects using the Sprite RendererA component that lets you display images as Sprites for use in both 2D and 3D scenes. More info
See in Glossary Component.
Topic | Description |
---|---|
Hide or reveal parts of a sprite with a mask | Set mask interaction determines to hide or reveal parts of a sprite. |
Create a sprite mask | Add a new sprite mask GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info See in Glossary 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 for hiding or revealing parts of a sprite. |
Apply a mask to a sprite | Assign a sprite to the sprite mask component, set the mask interaction, and control the mask’s effect. |
Sprite mask reference | Set a sprite as a mask, adjust the alpha cutoff for transparency, define the masking range, etc. |