Class XRHandCaptureSequence
A sequence of captured frames, providing data for hand tracking over a period of time.
Inherited Members
Namespace: UnityEngine.XR.Hands.Capture
Assembly: Unity.XR.Hands.dll
Syntax
public class XRHandCaptureSequence : ScriptableObject
Properties
canSurfaceCommonPoseData
Reports what XRHandSubsystem.canSurfaceCommonPoseData
returned during capture.
Declaration
public bool canSurfaceCommonPoseData { get; }
Property Value
| Type | Description |
|---|---|
| bool | If |
detectedHandMeshLayout
Reports what XRHandSubsystem.detectedHandMeshLayout
returned during capture.
Declaration
public XRDetectedHandMeshLayout detectedHandMeshLayout { get; }
Property Value
| Type | Description |
|---|---|
| XRDetectedHandMeshLayout |
durationInSeconds
The duration of the entire captured sequence in seconds.
Declaration
public float durationInSeconds { get; }
Property Value
| Type | Description |
|---|---|
| float | The duration in seconds. |
frames
The captured frames in this sequence.
Declaration
public IReadOnlyList<XRHandCaptureFrame> frames { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<XRHandCaptureFrame> | A read-only list of XRHandCaptureFrame objects. |
Methods
GetHandJointsInLayout(Allocator)
Gets the same joint layout that was retrieved during capture from
XRHandSubsystem.jointsInLayout.
Declaration
public NativeArray<bool> GetHandJointsInLayout(Allocator allocator)
Parameters
| Type | Name | Description |
|---|---|---|
| Allocator | allocator | This will be passed to the NativeArray_1 created and returned from
|
Returns
| Type | Description |
|---|---|
| NativeArray<bool> | The same layout reported during capture for jointsInLayout.
Each index will have a value of true if the capture can ever
report valid XRHandJoints in captured XRHands
if that |
GetLastActiveFingerShapeConfigurationState(XRHandFingerID, out XRFingerShapeConfigurationState)
Gets the XRFingerShapeConfiguration data for the given XRHandFingerID that was active at the end of capture that resulted in this asset.
Declaration
public void GetLastActiveFingerShapeConfigurationState(XRHandFingerID fingerID, out XRFingerShapeConfigurationState state)
Parameters
| Type | Name | Description |
|---|---|---|
| XRHandFingerID | fingerID | The finger to get captured finger shape configuration for. |
| XRFingerShapeConfigurationState | state | Will be filled out with state representing the active XRFingerShapeConfigurationState at the end of when the tracking data was captured. |