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&40;BlueprintCallable, Category&61;"Input&124;XRTracking", Meta&61;&40;WorldContext&61;"WorldContext"&41;&41;
static void GetDeviceWorldPose
&40;
UObject &42; WorldContext,
const FXRDeviceId & XRDeviceId,
bool & bIsTracked,
FRotator & Orientation,
bool & bHasPositionalTracking,
FVector & Position
&41;
Remarks
Cross XR-System query that returns a specific device's position and orientation in world space.
Parameters
| Name | Description |
|---|---|
| XRDeviceId | Specifies the device you're querying for. |
| bIsTracked | [out] Details if the specified device is tracked (i.e. should the rest of the outputs be used) |
| Orientation | [out] Represents the device's current rotation - NOTE: this value is not late updated and will be behind the render thread |
| bHasPositionalTracking | [out] Details if the specified device has positional tracking (i.e. if the position output should be used) |
| Position | [out] Represents the device's current position - NOTE: this value is not late updated and will be behind the render thread |