Class Mask
A visual element that can be used to mask color.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class Mask : Image, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
Name | Description |
---|---|
Mask() | Default constructor. |
Fields
Name | Description |
---|---|
ussClassName | The Mask main styling class. |
Properties
Name | Description |
---|---|
blur | The mask blur. Sets the blur of the mask (in pixels). |
contentContainer | The content container of this element. |
innerMaskColor | The inner mask color. Sets the color of the inner mask. |
maskRect | The mask rect. Sets the rect of the mask (in pixels or normalized if useNormalizedMaskRect is true). |
outerMaskColor | The outer mask color. The color of the area outside the mask. |
radius | The mask radius. Sets the radius of the rounded corners (in pixels). |
useNormalizedMaskRect | If true, the mask rect you will provide through maskRect must be normalized (0-1) instead of using pixels coordinates. |