Skip to main content

2D Mask

The 2D Mask component can be applied to texture. It allows you more flexibility with how they will appear on the screen.

2d mask component

To add a 2D Mask component:

  1. Go to the Inspector panel
  2. Click the Add Component button
  3. Go to 2D
  4. Select 2D Mask

Properties

PropertyDescription
Which CornerSelects which corner is masked:
  • Top Left
  • Top Right
  • Bottom Left
  • Bottom Right

All corners are set by default.
Corner RadiusDetermines the radius of each corner. Use the slider to set the radius to a value between 0 and 1. The default value is 0.
FeatheringSets the current image to blend with whatever is behind it.
OpacitySets the transparency of the texture. Use the slider to set the opacity to a value between 0 and 1, with 0 being transparent and 1 being opaque. The default value is 0.5.