docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Boundary

    Accessors for the XR Boundary system.

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

    Methods

    GetBoundaryConfigured()

    Indicates whether the Boundary has been configured.

    Declaration
    public static bool GetBoundaryConfigured()
    Returns
    Type Description
    bool

    True if the boundary system is currently configured with valid boundary data.

    GetBoundaryDimensions(BoundaryType, out Vector3)

    Get a vector of the spatial dimensions of the specified boundary type. (x = width, y = height, z = depth) with height always returning 0.

    Declaration
    public static bool GetBoundaryDimensions(Boundary.BoundaryType boundaryType, out Vector3 dimensions)
    Parameters
    Type Name Description
    Boundary.BoundaryType boundaryType

    The type of boundary from which to request dimensions.

    Vector3 dimensions

    The size of the boundary.

    Returns
    Type Description
    bool

    true if boundary dimensions are supported and values are available. Return false otherwise.

    GetBoundaryVisible()

    Is the Boundary volume visible?

    Declaration
    public static bool GetBoundaryVisible()
    Returns
    Type Description
    bool

    true if the boundary system is currently visible. Return false otherwise.

    SetBoundaryVisible(bool)

    Requests that the boundary system visibility be set to the specified value. The actual visibility can be overridden by the system (i.e., proximity trigger) or by the user (boundary system disabled)

    Declaration
    public static void SetBoundaryVisible(bool boundaryVisible)
    Parameters
    Type Name Description
    bool boundaryVisible

    true to make the boundary visible.

    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)