docs.unity.cn
    Show / Hide Table of Contents

    Class Clipping

    Utility class to help when clipping using IClipper.

    Inheritance
    Object
    Clipping
    Namespace: UnityEngine.UI
    Syntax
    public static class Clipping

    Methods

    FindCullAndClipWorldRect(List<RectMask2D>, out Boolean)

    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.

    Boolean validRect

    Was there a valid Rect found.

    Returns
    Type Description
    Rect

    The final compounded overlapping rect

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 June 2023