日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    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.

    Inheritance
    Object
    BaseService
    BaseExtensionService
    LostTrackingService
    Implements
    ILostTrackingService
    IMixedRealityExtensionService
    IMixedRealityService
    IDisposable
    Inherited Members
    BaseExtensionService.Registrar
    BaseService.DefaultPriority
    BaseService.Name
    BaseService.Priority
    BaseService.ConfigurationProfile
    BaseService.Reset()
    BaseService.Enable()
    BaseService.Update()
    BaseService.LateUpdate()
    BaseService.Disable()
    BaseService.Destroy()
    BaseService.disposed
    BaseService.Dispose()
    BaseService.Dispose(Boolean)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    [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 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.

    Properties

    OnTrackingLost

    Called when tracking is lost. (When UnityEngine.VR.WSA.PositionalLocatorState is Inhibited.)

    Declaration
    public Action OnTrackingLost { get; set; }
    Property Value
    Type Description
    Action

    OnTrackingRestored

    Called when tracking is stored (UnityEngine.VR.WSA.PositionalLocatorState is anything other than Inhibited.)

    Declaration
    public Action OnTrackingRestored { get; set; }
    Property Value
    Type Description
    Action

    TrackingLost

    True if tracking is lost, false if tracking is present.

    Declaration
    public bool TrackingLost { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Initialize()

    The initialize function is used to setup the service once created. This method is called once all services have been registered in the Mixed Reality Toolkit.

    Declaration
    public override void Initialize()
    Overrides
    BaseService.Initialize()

    Implements

    ILostTrackingService
    IMixedRealityExtensionService
    IMixedRealityService
    System.IDisposable
    Back to top Generated by DocFX