SpatialMeshExporter.Save Method

Definition

Overloads

Save(String, Boolean)

Save spatial mesh data for all observers under the current Spatial Awareness system

Save(IMixedRealitySpatialAwarenessMeshObserver, String, Boolean)

Save spatial mesh data for given observer to folder path provided

Save(String, Boolean)

Save spatial mesh data for all observers under the current Spatial Awareness system

public static System.Threading.Tasks.Task Save (string folderPath, bool consolidate = true);
static member Save : string * bool -> System.Threading.Tasks.Task
Public Shared Function Save (folderPath As String, Optional consolidate As Boolean = true) As Task

Parameters

folderPath
String

Absolute folder path to place OBJ files

consolidate
Boolean

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

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

Applies to

Save(IMixedRealitySpatialAwarenessMeshObserver, String, Boolean)

Save spatial mesh data for given observer to folder path provided

public static System.Threading.Tasks.Task Save (Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessMeshObserver meshObserver, string folderPath, bool consolidate = true);
static member Save : Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessMeshObserver * string * bool -> System.Threading.Tasks.Task
Public Shared Function Save (meshObserver As IMixedRealitySpatialAwarenessMeshObserver, folderPath As String, Optional consolidate As Boolean = true) As Task

Parameters

meshObserver
IMixedRealitySpatialAwarenessMeshObserver

Observer to target for requests of spatial mesh data

folderPath
String

Folder path to pull all OBJ files

consolidate
Boolean

if true, merge all mesh data from observer into one OBJ file. If false, create OBJ file per mesh object

Returns

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

Applies to