docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BoundsExtensions

    Extension methods for the Bounds type.

    Inheritance
    object
    BoundsExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.XR.CoreUtils
    Assembly: Unity.XR.CoreUtils.dll
    Syntax
    public static class BoundsExtensions

    Methods

    ContainsCompletely(Bounds, Bounds)

    Returns a whether the given bounds are contained completely within this one.

    Declaration
    public static bool ContainsCompletely(this Bounds outerBounds, Bounds innerBounds)
    Parameters
    Type Name Description
    Bounds outerBounds

    The outer bounds which may contain the inner bounds.

    Bounds innerBounds

    The inner bounds that may or may not fit within outerBounds.

    Returns
    Type Description
    bool

    True if outerBounds completely encloses innerBounds.

    Remarks

    If a boundary value is the same for both Bounds objects, that boundary is considered to be within the outerBounds.

    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)