Class Boundary | Oculus XR Plugin | 1.6.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class Boundary

    Inheritance
    Object
    Boundary
    Namespace: Unity.XR.Oculus
    Syntax
    public static class Boundary

    Methods

    GetBoundaryConfigured()

    Returns true if the boundary system is currently configured with valid boundary data.

    Declaration
    public static bool GetBoundaryConfigured()
    Returns
    Type Description
    Boolean

    GetBoundaryDimensions(Boundary.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. Return true if boundary dimensions are supported and values are available. Return false otherwise.

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

    GetBoundaryVisible()

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

    Declaration
    public static bool GetBoundaryVisible()
    Returns
    Type Description
    Boolean

    SetBoundaryVisible(Boolean)

    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
    Boolean boundaryVisible
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023