Modifica

Condividi tramite


IMixedRealityBoundarySystem.Contains(Vector3, BoundaryType) Method

Definition

Determines if a location is within the specified area of the boundary space.

public bool Contains (UnityEngine.Vector3 location, Microsoft.MixedReality.Toolkit.Boundary.BoundaryType boundaryType = Microsoft.MixedReality.Toolkit.Boundary.BoundaryType.TrackedArea);
abstract member Contains : UnityEngine.Vector3 * Microsoft.MixedReality.Toolkit.Boundary.BoundaryType -> bool
Public Function Contains (location As Vector3, Optional boundaryType As BoundaryType = Microsoft.MixedReality.Toolkit.Boundary.BoundaryType.TrackedArea) As Boolean

Parameters

location
UnityEngine.Vector3

The location to be checked.

boundaryType
BoundaryType

The type of boundary space being checked.

Returns

True if the location is within the specified area of the boundary space.

Remarks

Use BoundaryType.PlayArea for the inscribed volume and BoundaryType.TrackedArea for the area defined by the boundary edges.

Applies to