Class WindowsMRExtensions
Extension methods for the XRMeshingSubsystem that provide Windows MR XR Plugin specific APIs on top of the standard subsystem feature set.
Namespace: UnityEngine.XR.WindowsMR
Syntax
public static class WindowsMRExtensions : object
Methods
GetMeshingDataForMesh(XRMeshSubsystem, MeshId, out WindowsMRExtensions.MeshingData)
Get mesh data
Declaration
public static void GetMeshingDataForMesh(this XRMeshSubsystem meshing, MeshId meshId, out WindowsMRExtensions.MeshingData data)
Parameters
Type | Name | Description |
---|---|---|
XRMeshSubsystem | meshing | MeshSubsystem reference |
MeshId | meshId | Id of the mesh to aquire data for |
WindowsMRExtensions.MeshingData | data | Mesh data out |
ReleaseMeshingData(XRMeshSubsystem, ref WindowsMRExtensions.MeshingData)
Release mesh data
Declaration
public static void ReleaseMeshingData(this XRMeshSubsystem meshing, ref WindowsMRExtensions.MeshingData data)
Parameters
Type | Name | Description |
---|---|---|
XRMeshSubsystem | meshing | MeshSubsystem reference |
WindowsMRExtensions.MeshingData | data | Data to release |
SetBoundingVolumeFrustum(XRMeshSubsystem, Plane[])
Set the Frustum's Bounding Volume
Declaration
public static void SetBoundingVolumeFrustum(this XRMeshSubsystem meshing, Plane[] planes)
Parameters
Type | Name | Description |
---|---|---|
XRMeshSubsystem | meshing | MeshSubystem reference |
Plane[] | planes | Array of planes for each face of the bounding Frustum |
SetBoundingVolumeOrientedBox(XRMeshSubsystem, Vector3, Vector3, Quaternion)
Set the OB Bounding Volume
Declaration
public static void SetBoundingVolumeOrientedBox(this XRMeshSubsystem meshing, Vector3 center, Vector3 extents, Quaternion orientation)
Parameters
Type | Name | Description |
---|---|---|
XRMeshSubsystem | meshing | MeshSubystem reference |
Vector3 | center | Center position of the box |
Vector3 | extents | Extents of the box |
Quaternion | orientation | Orientation/Rotation of the box |
SetBoundingVolumeSphere(XRMeshSubsystem, Vector3, Single)
Set the Sphere Bounding Volume
Declaration
public static void SetBoundingVolumeSphere(this XRMeshSubsystem meshing, Vector3 center, float radius)
Parameters
Type | Name | Description |
---|---|---|
XRMeshSubsystem | meshing | MeshSubsystem reference |
Vector3 | center | Center point for the sphere |
Single | radius | Radius of the sphere |