docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Clipping

    Utility class to help when clipping using IClipper.

    Inheritance
    object
    Clipping
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)