Reality Boundary System. Contains(Vector3, BoundaryType) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The location to be checked.
The type of boundary space being checked.
True if the location is within the specified area of the boundary space.
Use BoundaryType.PlayArea for the inscribed volume and BoundaryType.TrackedArea for the area defined by the boundary edges.