Class Boundary
Accessors for the XR Boundary system.
Inherited Members
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 |
|
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.Boundary |
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. |