The '''Mask''' component restricts the rendering of anything beneath it. It requires an [[Component:Image|Image]] component, [[Component:Text|text]], [[Component:OutlinedArc|arc]], [[Component:RectMesh|rectmesh]], or anything that displays a graphic on the same [[Slot|slot]]. Only opaque areas of the graphic on the same slot will render the [[UIX]] below. This is also utilized in [[Component:ScrollRect|ScrollRect]] since it can mask anything outside of the scrolling viewport when using the component.
The '''Mask''' component restricts the rendering of anything beneath it. It requires an [[Component:Image|Image]] component, [[Component:Text|text]], [[Component:OutlinedArc|arc]], [[Component:RectMesh|rectmesh]], or anything that displays a graphic on the same [[Slot|slot]]. Only opaque areas of the graphic on the same slot will render the [[UIX]] below. This is also utilized in [[Component:ScrollRect|ScrollRect]] since it can mask anything outside of the scrolling viewport when using the component.
{{Note|This can have issues with UIX's behind, since there are some rendering bugs with Unity.|warning}}
There is a [[UIX Tutorial]] that use masking and [[Component:ScrollRect|ScrollRects]] to help you understand how masks work.
There is a [[UIX Tutorial]] that use masking and [[Component:ScrollRect|ScrollRects]] to help you understand how masks work.
{{Note|A few notes about this component:
* This can have issues with UIX's behind, since there are some rendering bugs with Unity.
* If a '''Mask''' component and a layout component ([[Component:HorizontalLayout|HorizontalLayout]], [[Component:VerticalLayout|VerticalLayout]], or [[Component:GridLayout|GridLayout]]) are on the same slot, it will mess up the UIX (especially when trying to make [[Component:ScrollRect|ScrollRects]] work).
The Mask component restricts the rendering of anything beneath it. It requires an Image component, text, arc, rectmesh, or anything that displays a graphic on the same slot. Only opaque areas of the graphic on the same slot will render the UIX below. This is also utilized in ScrollRect since it can mask anything outside of the scrolling viewport when using the component.
There is a UIX Tutorial that use masking and ScrollRects to help you understand how masks work.
A few notes about this component:
This can have issues with UIX's behind, since there are some rendering bugs with Unity.