Class MixedRealitySpatialAwarenessMeshObserverProfile
Configuration profile settings for spatial awareness mesh observers.
Inheritance
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.SpatialAwareness
Assembly: cs.temp.dll.dll
Syntax
[MixedRealityServiceProfile(typeof(IMixedRealitySpatialAwarenessMeshObserver), null)]
public class MixedRealitySpatialAwarenessMeshObserverProfile : BaseSpatialAwarenessObserverProfile
Properties
DisplayOption
Indicates how the mesh subsystem is to display surface meshes within the application.
Declaration
public SpatialAwarenessMeshDisplayOptions DisplayOption { get; }
Property Value
Type | Description |
---|---|
SpatialAwarenessMeshDisplayOptions |
LevelOfDetail
The level of detail used when creating the mesh.
Declaration
public SpatialAwarenessMeshLevelOfDetail LevelOfDetail { get; }
Property Value
Type | Description |
---|---|
SpatialAwarenessMeshLevelOfDetail |
MeshPhysicsLayer
The Unity Physics Layer on which to set observed meshes.
Declaration
public int MeshPhysicsLayer { get; }
Property Value
Type | Description |
---|---|
Int32 |
OcclusionMaterial
The material to be used when observed meshes should occlude other objects.
Declaration
public Material OcclusionMaterial { get; }
Property Value
Type | Description |
---|---|
Material |
PhysicsMaterial
Declaration
public PhysicMaterial PhysicsMaterial { get; }
Property Value
Type | Description |
---|---|
PhysicMaterial |
RecalculateNormals
Indicates if the spatial awareness system to generate normal for the returned meshes as some platforms may not support returning normal along with the spatial mesh.
Declaration
public bool RecalculateNormals { get; }
Property Value
Type | Description |
---|---|
Boolean |
RuntimeSpatialMeshPrefab
Optional prefab that is added to the runtime spatial mesh hierarchy. This prefab will only be instantiated and appended to the hierarchy in a build, the behavior associated with this property is not enabled in editor.
Runtime Spatial Awareness Hierarchy without this prefab:
Spatial Awareness System Windows Mixed Reality Spatial Mesh Observer Spatial Mesh - ID Spatial Mesh - ID ...
Runtime Spatial Awareness Hierarchy with this prefab:
Spatial Awareness System Runtime Spatial Mesh Prefab Windows Mixed Reality Spatial Mesh Observer Spatial Mesh - ID Spatial Mesh - ID ...
Declaration
public GameObject RuntimeSpatialMeshPrefab { get; }
Property Value
Type | Description |
---|---|
GameObject |
TrianglesPerCubicMeter
The level of detail, in triangles per cubic meter, for the returned spatial mesh.
Declaration
public int TrianglesPerCubicMeter { get; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
This value is ignored, unless LevelOfDetail is set to Custom.
VisibleMaterial
The material to be used when displaying observed meshes.
Declaration
public Material VisibleMaterial { get; }
Property Value
Type | Description |
---|---|
Material |