SpatialObjectMeshObserver Constructors

Definition

Overloads

SpatialObjectMeshObserver(IMixedRealitySpatialAwarenessSystem, String, UInt32, BaseMixedRealityProfile)

Constructor.

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

Parameters

spatialAwarenessSystem
IMixedRealitySpatialAwarenessSystem
name
String

Friendly name of the service.

priority
UInt32

Service priority. Used to determine order of instantiation.

profile
BaseMixedRealityProfile

The service's configuration profile.

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

SpatialObjectMeshObserver(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.")]
public SpatialObjectMeshObserver (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 service.

spatialAwarenessSystem
IMixedRealitySpatialAwarenessSystem
name
String

Friendly name of the service.

priority
UInt32

Service priority. Used to determine order of instantiation.

profile
BaseMixedRealityProfile

The service's configuration profile.

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)