Navigation
API > API/Plugins > API/Plugins/XRBase > API/Plugins/XRBase/UHeadMountedDisplayFunctionLibra-
References
| Module | XRBase |
| Header | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/HeadMountedDisplayFunctionLibrary.h |
| Include | #include "HeadMountedDisplayFunctionLibrary.h" |
| Source | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Private/HeadMountedDisplayFunctionLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Input|XRTracking")
static void GetHandTrackingState
(
UObject * WorldContext,
const EXRSpaceType XRSpaceType,
const EControllerHand Hand,
FXRHandTrackingState & HandTrackingState
)
Remarks
Cross XR-System query that returns critical information about the motion controller (position, orientation, hand/finger position)
Parameters
| Name | Description |
|---|---|
| WorldContext | Any object in the world (the player pawn would work). Used in PIE to make sure we get this data from a motioncontroller component that is currently active, rather than one in an editor view world that is never tracked. |
| XRSpaceType | Can switch between unreal world coordinates and tracking space coordinates. Tracking space may be useful with non-1:1 world scales. |
| Hand | Indicates which hand we want data for. |
| HandTrackingData | [out] Struct filled with information about the hand tracking state. |