Class InputPlaybackService
Plays back input animation via the input simulation system.
Inheritance
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class InputPlaybackService : BaseInputSimulationService, IMixedRealityInputPlaybackService, 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 = default(uint), 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(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 = default(uint), 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 = default(uint), 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. |
InputPlaybackService(IMixedRealityInputSystem, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
public InputPlaybackService(IMixedRealityInputSystem inputSystem, string name = null, uint priority = default(uint), 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
Declaration
public InputAnimation Animation { get; set; }
Property Value
| Type | Description |
|---|---|
| InputAnimation |
Animation
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 |
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 |
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 |
HandDataRight
Pose data for the right hand.
Declaration
public SimulatedHandData HandDataRight { get; }
Property Value
| Type | Description |
|---|---|
| SimulatedHandData |
IsPlaying
Declaration
public bool IsPlaying { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
IsPlaying
Declaration
public bool IsPlaying { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
LocalTime
Declaration
public float LocalTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Single |
LocalTime
Declaration
public float LocalTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Single |
Methods
CheckCapability(MixedRealityCapability)
Declaration
public bool CheckCapability(MixedRealityCapability capability)
Parameters
| Type | Name | Description |
|---|---|---|
| MixedRealityCapability | capability |
Returns
| Type | Description |
|---|---|
| Boolean |
CheckCapability(MixedRealityCapability)
Declaration
public bool CheckCapability(MixedRealityCapability capability)
Parameters
| Type | Name | Description |
|---|---|---|
| MixedRealityCapability | capability |
Returns
| Type | Description |
|---|---|
| Boolean |
LoadInputAnimation(String)
Declaration
public bool LoadInputAnimation(string filepath)
Parameters
| Type | Name | Description |
|---|---|---|
| String | filepath |
Returns
| Type | Description |
|---|---|
| Boolean |
LoadInputAnimation(String)
Declaration
public bool LoadInputAnimation(string filepath)
Parameters
| Type | Name | Description |
|---|---|---|
| String | filepath |
Returns
| Type | Description |
|---|---|
| Boolean |
Pause()
Declaration
public void Pause()
Pause()
Declaration
public void Pause()
Play()
Declaration
public void Play()
Play()
Declaration
public void Play()
Stop()
Declaration
public void Stop()
Stop()
Declaration
public void Stop()
Update()
Declaration
public override void Update()
Overrides
Update()
Declaration
public override void Update()