BaseSpatialObserver Constructors

Definition

Overloads

BaseSpatialObserver(IMixedRealitySpatialAwarenessSystem, String, UInt32, BaseMixedRealityProfile)

Constructor.

C#
protected BaseSpatialObserver (Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = default, uint priority = 10, Microsoft.MixedReality.Toolkit.BaseMixedRealityProfile profile = default);

Parameters

spatialAwarenessSystem
IMixedRealitySpatialAwarenessSystem

The IMixedRealitySpatialAwarenessSystem to which the observer is providing data.

name
String

The friendly name of the data provider.

priority
UInt32

The registration priority of the data provider.

profile
BaseMixedRealityProfile

The configuration profile for the data provider.

Applies to

MRTK2 Unity 2018 2.7.0 och andra versioner
Produkt Versioner
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0

BaseSpatialObserver(IMixedRealityServiceRegistrar, IMixedRealitySpatialAwarenessSystem, String, UInt32, BaseMixedRealityProfile)

Caution

This constructor is obsolete (registrar parameter is no longer required) and will be removed in a future version of the Microsoft Mixed Reality Toolkit.

Constructor.

C#
[System.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.")]
protected BaseSpatialObserver (Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar registrar, Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name = default, uint priority = 10, Microsoft.MixedReality.Toolkit.BaseMixedRealityProfile profile = default);

Parameters

registrar
IMixedRealityServiceRegistrar

The IMixedRealityServiceRegistrar instance that loaded the observer.

spatialAwarenessSystem
IMixedRealitySpatialAwarenessSystem

The IMixedRealitySpatialAwarenessSystem to which the observer is providing data.

name
String

The friendly name of the data provider.

priority
UInt32

The registration priority of the data provider.

profile
BaseMixedRealityProfile

The configuration profile for the data provider.

Attributes

Applies to

MRTK2 Unity 2018 2.7.0 och andra versioner
Produkt Versioner (Föråldrad)
MRTK2 Unity 2018 (2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0)
MRTK2 Unity 2019 (2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0)
MRTK2 Unity 2020 (2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0)