Class LostTrackingService
A service that detects when tracking is lost on WSA devices. When tracking is lost, the service displays a visual indicator and sets the main camera's culling mask to hide all other objects. When tracking is restored, the camera mask is restored and the visual indicator is hidden.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Extensions.Tracking
Assembly: cs.temp.dll.dll
Syntax
public class LostTrackingService : BaseExtensionService, ILostTrackingService, IMixedRealityExtensionService, IMixedRealityService, IDisposable
Constructors
LostTrackingService(IMixedRealityServiceRegistrar, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
public LostTrackingService(IMixedRealityServiceRegistrar registrar, string name, uint priority, BaseMixedRealityProfile profile)
Parameters
| Type | Name | Description |
|---|---|---|
| IMixedRealityServiceRegistrar | registrar | The IMixedRealityServiceRegistrar instance that loaded the service. |
| String | name | Friendly name of the service. |
| UInt32 | priority | Service priority. Used to determine order of instantiation. |
| BaseMixedRealityProfile | profile | The service's configuration profile. |
LostTrackingService(IMixedRealityServiceRegistrar, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
public LostTrackingService(IMixedRealityServiceRegistrar registrar, string name, uint priority, BaseMixedRealityProfile profile)
Parameters
| Type | Name | Description |
|---|---|---|
| IMixedRealityServiceRegistrar | registrar | The IMixedRealityServiceRegistrar instance that loaded the service. |
| String | name | Friendly name of the service. |
| UInt32 | priority | Service priority. Used to determine order of instantiation. |
| BaseMixedRealityProfile | profile | The service's configuration profile. |
LostTrackingService(String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
public LostTrackingService(string name, uint priority, BaseMixedRealityProfile profile)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Friendly name of the service. |
| UInt32 | priority | Service priority. Used to determine order of instantiation. |
| BaseMixedRealityProfile | profile | The service's configuration profile. |
LostTrackingService(String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
public LostTrackingService(string name, uint priority, BaseMixedRealityProfile profile)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Friendly name of the service. |
| UInt32 | priority | Service priority. Used to determine order of instantiation. |
| BaseMixedRealityProfile | profile | The service's configuration profile. |
Properties
OnTrackingLost
Declaration
public Action OnTrackingLost { get; set; }
Property Value
| Type | Description |
|---|---|
| Action |
OnTrackingLost
Declaration
public Action OnTrackingLost { get; set; }
Property Value
| Type | Description |
|---|---|
| Action |
OnTrackingRestored
Declaration
public Action OnTrackingRestored { get; set; }
Property Value
| Type | Description |
|---|---|
| Action |
OnTrackingRestored
Declaration
public Action OnTrackingRestored { get; set; }
Property Value
| Type | Description |
|---|---|
| Action |
TrackingLost
Declaration
public bool TrackingLost { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
TrackingLost
Declaration
public bool TrackingLost { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Methods
Initialize()
Declaration
public override void Initialize()
Overrides
Initialize()
Declaration
public override void Initialize()