We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class InputPlaybackService

    Plays back input animation via the input simulation system.

    Inheritance
    Object
    BaseService
    BaseDataProvider<IMixedRealityInputSystem>
    BaseInputDeviceManager
    BaseInputSimulationService
    InputPlaybackService
    Implements
    IMixedRealityServiceState
    IMixedRealityInputPlaybackService
    IMixedRealityEyeGazeDataProvider
    IMixedRealityInputDeviceManager
    IMixedRealityDataProvider
    IMixedRealityService
    IDisposable
    Inherited Members
    BaseInputSimulationService.GetActiveControllers()
    BaseInputSimulationService.UpdateControllerDevice(ControllerSimulationMode, Handedness, Object)
    BaseInputSimulationService.GetControllerDevice(Handedness)
    BaseInputSimulationService.GetOrAddControllerDevice(Handedness, ControllerSimulationMode)
    BaseInputSimulationService.RemoveControllerDevice(Handedness)
    BaseInputSimulationService.RemoveAllControllerDevices()
    BaseInputSimulationService.UpdateHandDevice(ControllerSimulationMode, Handedness, SimulatedHandData)
    BaseInputSimulationService.GetHandDevice(Handedness)
    BaseInputSimulationService.GetOrAddHandDevice(Handedness, ControllerSimulationMode)
    BaseInputSimulationService.RemoveHandDevice(Handedness)
    BaseInputSimulationService.RemoveAllHandDevices()
    BaseInputDeviceManager.EnablePointerCache
    BaseInputDeviceManager.InputSystemProfile
    BaseInputDeviceManager.Initialize()
    BaseInputDeviceManager.Destroy()
    BaseInputDeviceManager.RequestPointers(SupportedControllerType, Handedness)
    BaseInputDeviceManager.RecyclePointers(IMixedRealityInputSource)
    BaseDataProvider<IMixedRealityInputSystem>.Registrar
    BaseDataProvider<IMixedRealityInputSystem>.Service
    BaseService.DefaultPriority
    BaseService.Name
    BaseService.Priority
    BaseService.ConfigurationProfile
    BaseService.Reset()
    BaseService.Enable()
    BaseService.LateUpdate()
    BaseService.Disable()
    BaseService.IsInitialized
    BaseService.IsEnabled
    BaseService.IsMarkedDestroyed
    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.Input
    Assembly: cs.temp.dll.dll
    Syntax
    [MixedRealityDataProvider(typeof(IMixedRealityInputSystem), null, "Input Playback Service")]
    public class InputPlaybackService : BaseInputSimulationService, IMixedRealityServiceState, IMixedRealityInputPlaybackService, IMixedRealityEyeGazeDataProvider, IMixedRealityInputDeviceManager, IMixedRealityDataProvider, IMixedRealityService, IDisposable

    Constructors

    InputPlaybackService(IMixedRealityServiceRegistrar, IMixedRealityInputSystem, 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 InputPlaybackService(IMixedRealityServiceRegistrar registrar, IMixedRealityInputSystem inputSystem, string name = null, uint priority = 10U, BaseMixedRealityProfile profile = null)
    Parameters
    Type Name Description
    IMixedRealityServiceRegistrar registrar

    The IMixedRealityServiceRegistrar instance that loaded the data provider.

    IMixedRealityInputSystem inputSystem

    The IMixedRealityInputSystem instance that receives data from this provider.

    String name

    Friendly name of the service.

    UInt32 priority

    Service priority. Used to determine order of instantiation.

    BaseMixedRealityProfile profile

    The service's configuration profile.

    InputPlaybackService(IMixedRealityInputSystem, String, UInt32, BaseMixedRealityProfile)

    Constructor.

    Declaration
    public InputPlaybackService(IMixedRealityInputSystem inputSystem, string name = null, uint priority = 10U, BaseMixedRealityProfile profile = null)
    Parameters
    Type Name Description
    IMixedRealityInputSystem inputSystem

    The IMixedRealityInputSystem instance that receives data from this provider.

    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

    Animation

    The animation currently being played.

    Declaration
    public InputAnimation Animation { get; set; }
    Property Value
    Type Description
    InputAnimation

    Duration

    Duration of the played animation.

    Declaration
    public float Duration { get; }
    Property Value
    Type Description
    Single

    HandDataLeft

    Pose data for the left hand.

    Declaration
    public SimulatedHandData HandDataLeft { get; }
    Property Value
    Type Description
    SimulatedHandData

    HandDataRight

    Pose data for the right hand.

    Declaration
    public SimulatedHandData HandDataRight { get; }
    Property Value
    Type Description
    SimulatedHandData

    IsPlaying

    True if the animation is currently playing.

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

    LocalTime

    The local time in seconds relative to the start of the animation.

    Declaration
    public float LocalTime { get; set; }
    Property Value
    Type Description
    Single

    SaccadeProvider

    Declaration
    public IMixedRealityEyeSaccadeProvider SaccadeProvider { get; }
    Property Value
    Type Description
    IMixedRealityEyeSaccadeProvider

    SmoothEyeTracking

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

    Methods

    CheckCapability(MixedRealityCapability)

    Declaration
    public bool CheckCapability(MixedRealityCapability capability)
    Parameters
    Type Name Description
    MixedRealityCapability capability
    Returns
    Type Description
    Boolean

    LoadInputAnimation(String)

    Try to load input animation data from the given file.

    Declaration
    public bool LoadInputAnimation(string filepath)
    Parameters
    Type Name Description
    String filepath
    Returns
    Type Description
    Boolean

    True if loading input animation from the file succeeded.

    LoadInputAnimationAsync(String)

    Try to load input animation data from the given file asynchronously.

    Declaration
    public Task<bool> LoadInputAnimationAsync(string filepath)
    Parameters
    Type Name Description
    String filepath
    Returns
    Type Description
    Task<Boolean>

    True if loading input animation from the file succeeded.

    Pause()

    Pause playback and keep the current local time.

    Declaration
    public void Pause()

    Play()

    Start playing the animation.

    Declaration
    public void Play()

    Stop()

    Stop playing the animation and jump to the start.

    Declaration
    public void Stop()

    Update()

    Optional Update function to perform per-frame updates of the service.

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

    Events

    OnPlaybackPaused

    Invoked when playback is paused

    Declaration
    public event Action OnPlaybackPaused
    Event Type
    Type Description
    Action

    OnPlaybackStarted

    Invoked when playback begins or resumes

    Declaration
    public event Action OnPlaybackStarted
    Event Type
    Type Description
    Action

    OnPlaybackStopped

    Invoked when playback stops

    Declaration
    public event Action OnPlaybackStopped
    Event Type
    Type Description
    Action

    Implements

    IMixedRealityServiceState
    IMixedRealityInputPlaybackService
    IMixedRealityEyeGazeDataProvider
    IMixedRealityInputDeviceManager
    IMixedRealityDataProvider
    IMixedRealityService
    System.IDisposable
    In This Article
    Back to top Generated by DocFX