Class SpatialObjectMeshObserver
Spatial awareness mesh observer that provides mesh data from a 3D model imported as a Unity asset.
Inheritance
SpatialObjectMeshObserver
Implements
IMixedRealitySpatialAwarenessMeshObserver
Assembly: cs.temp.dll.dll
public class SpatialObjectMeshObserver : BaseSpatialObserver, IMixedRealitySpatialAwarenessMeshObserver, IMixedRealityCapabilityCheck
Constructors
Declaration
public SpatialObjectMeshObserver(IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Type |
Name |
Description |
IMixedRealitySpatialAwarenessSystem |
spatialAwarenessSystem |
|
String |
name |
Friendly name of the service.
|
UInt32 |
priority |
Service priority. Used to determine order of instantiation.
|
BaseMixedRealityProfile |
profile |
The service's configuration profile.
|
Declaration
[Obsolete("This constructor is obsolete (registrar parameter is no longer required) and will be removed in a future version of the Microsoft Mixed Reality Toolkit.")]
public SpatialObjectMeshObserver(IMixedRealityServiceRegistrar registrar, IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Properties
Declaration
public SpatialAwarenessMeshDisplayOptions DisplayOption { get; set; }
Property Value
Type |
Description |
SpatialAwarenessMeshDisplayOptions |
|
Declaration
public SpatialAwarenessMeshLevelOfDetail LevelOfDetail { get; set; }
Property Value
Type |
Description |
SpatialAwarenessMeshLevelOfDetail |
|
Declaration
public IReadOnlyDictionary<int, SpatialAwarenessMeshObject> Meshes { get; }
Property Value
Type |
Description |
IReadOnlyDictionary<Int32, SpatialAwarenessMeshObject> |
|
Declaration
public int MeshPhysicsLayer { get; set; }
Property Value
Declaration
public int MeshPhysicsLayerMask { get; }
Property Value
Declaration
protected virtual GameObject ObservedObjectParent { get; }
Property Value
Type |
Description |
GameObject |
|
Declaration
public Material OcclusionMaterial { get; set; }
Property Value
Type |
Description |
Material |
|
Declaration
public bool RecalculateNormals { get; set; }
Property Value
Declaration
public int TrianglesPerCubicMeter { get; set; }
Property Value
Declaration
public Material VisibleMaterial { get; set; }
Property Value
Type |
Description |
Material |
|
Methods
Declaration
public override void ClearObservations()
Declaration
public override void Destroy()
Declaration
public override void Disable()
Declaration
public override void Enable()
Declaration
public override void Initialize()
Declaration
public override void Reset()
Declaration
public override void Resume()
Declaration
public override void Suspend()
Declaration
public override void Update()
Explicit Interface Implementations
Checks to see if one or more registered data providers supports the requested capability
on the current platform.
Declaration
bool IMixedRealityCapabilityCheck.CheckCapability(MixedRealityCapability capability)
Parameters
Returns
Type |
Description |
Boolean |
True if the capability is supported, false otherwise.
|
Implements
IMixedRealitySpatialAwarenessMeshObserver