docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RectExtension

    Rect extension

    Inheritance
    object
    RectExtension
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering.LookDev
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public static class RectExtension

    Methods

    IsNullOrInverted(Rect)

    Return true if the UnityEngine.Rect is null sized or inverted.

    Declaration
    public static bool IsNullOrInverted(this Rect r)
    Parameters
    Type Name Description
    Rect r

    The rect

    Returns
    Type Description
    bool

    True: null or inverted area

    In This Article
    Back to top
    Copyright © 2025 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)