Experimental: this API is experimental and might be changed or removed in the future.
XRMeshSubsystem
class in
UnityEngine.Experimental.XR
/
Inherits from:Experimental.IntegratedSubsystem
/
Implemented in:UnityEngine.XRModule
Suggest a change
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close
Description
Allows external systems to provide dynamic meshes to Unity.
The XRMeshSubsystem enables external systems to provide dynamic meshes to Unity. The meshes are processed on background threads, including physics baking, so as not to block the main thread during execution. This is useful for that provide dynamic meshes during runtime, such as spatially-aware AR devices.
Public Methods
GenerateMeshAsync | Request that the mesh with TrackableId meshId gets generated. onMeshGenerationComplete is called when generation is complete. |
TryGetMeshInfos | Get information about every mesh tracked by the system. |
Inherited Members
Public Methods
Destroy | Destroys this instance of a subsystem. |
Start | Starts an instance of a subsystem. |
Stop | Stops an instance of a subsystem. |