Struct XrHandTrackingDataSourceStateEXT
Extends XrHandJointLocationsEXT to report which hand tracking data source
the runtime used to produce the joint locations for the most recent
xrLocateHandJointsEXT call. Provided by XR_EXT_hand_tracking_data_source.
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrHandTrackingDataSourceStateEXT
Remarks
Warning
Don't initialize this struct with the default parameterless constructor. Use either defaultValue or a constructor with parameters to ensure that type is correctly initialized to HandTrackingDataSourceStateEXT.
Constructors
XrHandTrackingDataSourceStateEXT(bool, XrHandTrackingDataSourceEXT)
Construct an instance with a null next pointer.
Declaration
public XrHandTrackingDataSourceStateEXT(bool isActive, XrHandTrackingDataSourceEXT dataSource)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isActive |
|
| XrHandTrackingDataSourceEXT | dataSource | The data source the runtime used to produce the joint locations.
Only valid when |
XrHandTrackingDataSourceStateEXT(void*, bool, XrHandTrackingDataSourceEXT)
Construct an instance.
Declaration
public XrHandTrackingDataSourceStateEXT(void* next, bool isActive, XrHandTrackingDataSourceEXT dataSource)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| bool | isActive |
|
| XrHandTrackingDataSourceEXT | dataSource | The data source the runtime used to produce the joint locations.
Only valid when |
Properties
dataSource
The data source the runtime used to produce the joint locations for the most recent
xrLocateHandJointsEXT call. Only valid when isActive is non-zero.
Declaration
public XrHandTrackingDataSourceEXT dataSource { get; }
Property Value
| Type | Description |
|---|---|
| XrHandTrackingDataSourceEXT |
defaultValue
Get a default instance with an initialized type property.
Declaration
public static XrHandTrackingDataSourceStateEXT defaultValue { get; }
Property Value
| Type | Description |
|---|---|
| XrHandTrackingDataSourceStateEXT |
isActive
Indicates whether dataSource contains a valid value reported by the runtime.
Declaration
public UInt32 isActive { get; }
Property Value
| Type | Description |
|---|---|
| uint |
next
null or a pointer to the next structure in a structure chain.
Declaration
public void* next { get; }
Property Value
| Type | Description |
|---|---|
| void* |
type
The XrStructureType of this struct: HandTrackingDataSourceStateEXT.
Declaration
public XrStructureType type { get; }
Property Value
| Type | Description |
|---|---|
| XrStructureType |