docs.unity.cn
    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
    Generated by DocFX
    on Friday, March 3, 2023
    Terms of use