Class InputRecordingBuffer
Container used to efficiently store a sequence of input animation keyframes while recording
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class InputRecordingBuffer : IEnumerable<InputRecordingBuffer.Keyframe>
Constructors
InputRecordingBuffer()
Default constructor
Declaration
public InputRecordingBuffer()
Properties
StartTime
The time of the first keyframe in the buffer
Declaration
public float StartTime { get; }
Property Value
Type | Description |
---|---|
Single |
Methods
Clear()
Removes all keyframes from the buffer
Declaration
public void Clear()
GetEnumerator()
Returns a sequence of all keyframes in the buffer
Declaration
public IEnumerator<InputRecordingBuffer.Keyframe> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<InputRecordingBuffer.Keyframe> |
NewKeyframe(Single)
Creates a new, empty keyframe with a given time at the end of the buffer
Declaration
public int NewKeyframe(float time)
Parameters
Type | Name | Description |
---|---|---|
Single | time |
Returns
Type | Description |
---|---|
Int32 | The index of the new keyframe |
RemoveBeforeTime(Single)
Removes all keyframes before a given time
Declaration
public void RemoveBeforeTime(float time)
Parameters
Type | Name | Description |
---|---|---|
Single | time |
SetCameraPose(MixedRealityPose)
Sets the camera pose to be stored in the newest keyframe
Declaration
public void SetCameraPose(MixedRealityPose pose)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPose | pose |
SetGazeRay(Ray)
Sets the eye gaze ray to be stored in the newest keyframe
Declaration
public void SetGazeRay(Ray ray)
Parameters
Type | Name | Description |
---|---|---|
Ray | ray |
SetHandState(Handedness, Boolean, Boolean)
Sets the state of a given hand to be stored in the newest keyframe
Declaration
public void SetHandState(Handedness handedness, bool tracked, bool pinching)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness | |
Boolean | tracked | |
Boolean | pinching |
SetJointPose(Handedness, TrackedHandJoint, MixedRealityPose)
Sets the pose of a given joint to be stored in the newest keyframe
Declaration
public void SetJointPose(Handedness handedness, TrackedHandJoint joint, MixedRealityPose pose)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness | |
TrackedHandJoint | joint | |
MixedRealityPose | pose |