BaseBoundarySystem.Contains(Vector3, BoundaryType) Method

Definition

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

C#
public bool Contains (UnityEngine.Vector3 location, Microsoft.MixedReality.Toolkit.Boundary.BoundaryType boundaryType = Microsoft.MixedReality.Toolkit.Boundary.BoundaryType.TrackedArea);

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.

Implements

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0