Class SpatialMeshExporter
Utility to export current Spatial Mesh Data to OBJ file
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.SpatialAwareness.Utilities
Assembly: cs.temp.dll.dll
Syntax
public static class SpatialMeshExporter
Methods
Save(IMixedRealitySpatialAwarenessMeshObserver, String, Boolean)
Save spatial mesh data for given observer to folder path provided
Declaration
public static Task Save(IMixedRealitySpatialAwarenessMeshObserver meshObserver, string folderPath, bool consolidate = true)
Parameters
Type | Name | Description |
---|---|---|
IMixedRealitySpatialAwarenessMeshObserver | meshObserver | Observer to target for requests of spatial mesh data |
String | folderPath | Folder path to pull all OBJ files |
Boolean | consolidate | if true, merge all mesh data from observer into one OBJ file. If false, create OBJ file per mesh object |
Returns
Type | Description |
---|---|
Task |
Remarks
Accessing GameObject/Mesh data will occur as Coroutine on Unity Main thread. May impact performance. If folder path does not exist, throws exception
Save(String, Boolean)
Save spatial mesh data for all observers under the current Spatial Awareness system
Declaration
public static Task Save(string folderPath, bool consolidate = true)
Parameters
Type | Name | Description |
---|---|---|
String | folderPath | Absolute folder path to place OBJ files |
Boolean | consolidate | If true, attempts to consolidate all meshes per Observer into one OBJ file. If false, creates an OBJ file per mesh object on each observer |
Returns
Type | Description |
---|---|
Task |
Remarks
Accessing GameObject/Mesh data will occur as Coroutine on Unity Main thread. May impact performance. If folder path does not exist, throws exception