Class Clipping
Utility class to help when clipping using IClipper.
Inherited Members
Namespace: UnityEngine.UI
Assembly: UnityEngine.UI.dll
Syntax
public static class Clipping
Methods
FindCullAndClipWorldRect(List<RectMask2D>, out bool)
Find the Rect to use for clipping. Given the input RectMask2ds find a rectangle that is the overlap of all the inputs.
Declaration
public static Rect FindCullAndClipWorldRect(List<RectMask2D> rectMaskParents, out bool validRect)
Parameters
Type | Name | Description |
---|---|---|
List<RectMask2D> | rectMaskParents | RectMasks to build the overlap rect from. |
bool | validRect | Was there a valid Rect found. |
Returns
Type | Description |
---|---|
Rect | The final compounded overlapping rect |