To allow a 3D 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 interact with 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 masks, set the Mask Interaction property of the meshThe main graphics primitive of Unity. Meshes make up a large part of your 3D worlds. Unity supports triangulated or Quadrangulated polygon meshes. Nurbs, Nurms, Subdiv surfaces must be converted to polygons. More info
See in Glossary renderer.
Your project must be a 2D URP Project for the Mesh Renderer component to show the additional 2D > Mask Interaction property setting.
To enable Sprite mask interaction in a Mesh RendererA mesh component that takes the geometry from the Mesh Filter and renders it at the position defined by the object’s Transform component. More info
See in Glossary or Skinned Mesh Renderer component of a 3D GameObject, follow these steps:
| Option | Description |
|---|---|
| None | Renders without interacting with Sprite masks. |
| Visible Inside Mask | Renders only the parts of the mesh that overlap the Sprite mask. |
| Visible Outside Mask | Renders only the parts of the mesh that don’t overlap the Sprite mask. |
The following are examples of the visual effect that each option has when Unity renders the meshes with Sprite masks.