class
ClipMask
Inherits from UnityEngine.MonoBehaviour
Clips the rendered bounds of a UIBlock hierarchy to a rounded-corner rectangle or custom texture. Supports applying a color tint or fade to the UIBlock hierarchy as well.
Remarks
Clipping can be performed via a mask texture or using the rectangular bounds of the UIBlock on this gameobject. If the attached UIBlock is a UIBlock2D, the ClipMask defaults to clipping to the rounded-corner rectangle bounds matching the UIBlock2D's Corner Radius.
Related Articles
Properties
Clip | Enables or disables clipping. Can be used to make the ClipMask exclusively apply a Tint. |
Mask | The texture to use as a mask when |
Tint | The tint color applied to this UIBlock and its descendants. |
UIBlock | The UIBlock on |