Class MeshingSettings
Static class for managing setting for the Meshing feature.
Inherited Members
Namespace: UnityEngine .XR.MagicLeap .Meshing
Assembly: UnityEngine.XR.MagicLeap.dll
Syntax
public static class MeshingSettings
Methods
AcquireConfidence(MeshId, out int)
Acquire the confidence level of a given Mesh ID
Declaration
public static IntPtr AcquireConfidence(MeshId meshId, out int count)
Parameters
Returns
Type | Description |
---|---|
Int |
Pointer to confidence struct |
ReleaseConfidence(MeshId)
Release a reference to the confidence struct we've acquired from AcquireConfidence
Declaration
public static void ReleaseConfidence(MeshId meshId)
Parameters
Type | Name | Description |
---|---|---|
Mesh |
meshId | The Mesh ID |
SetBatchSize(int)
Set the batch size for the meshing subsystem.
Declaration
public static void SetBatchSize(int batchSize)
Parameters
Type | Name | Description |
---|---|---|
int | batchSize | int representing batch size of meshes. |
SetBounds(Transform, Vector3)
Set a bounds on the meshing subsystem
Declaration
public static void SetBounds(Transform transform, Vector3 extents)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | Unity Transform indicating the centroid of the space |
Vector3 | extents | Bounding rectangle of the meshing space |
SetBounds(Vector3, Quaternion, Vector3)
Set the bounding area for the meshing subsystem.
Declaration
public static void SetBounds(Vector3 position, Quaternion rotation, Vector3 extents)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | Vector3 representing the center of the bounding rectangle. |
Quaternion | rotation | Quaternion representing the orientation of the bounding rectangle. |
Vector3 | extents | Vector3 representing the extents of the bounding rectangle. |
SetDensity(float)
Set the density for the meshing subsystem.
Declaration
public static void SetDensity(float density)
Parameters
Type | Name | Description |
---|---|---|
float | density | float representing density of meshes. |
SetMeshingSettings(MLMeshingSettings)
Set the meshing settings of the meshing subsystem.
Declaration
public static void SetMeshingSettings(MLMeshingSettings meshingSettings)
Parameters
Type | Name | Description |
---|---|---|
MLMeshing |
meshingSettings | MLMeshingSettings representing settings used for Magic Leap's Meshing System. |