UHeadMountedDisplayFunctionLibrary::GetDeviceWorldPose

Cross XR-System query that returns a specific device's position and orientation in world space.

Windows
MacOS
Linux

References

Module

HeadMountedDisplay

Header

/Engine/Source/Runtime/HeadMountedDisplay/Public/HeadMountedDisplayFunctionLibrary.h

Include

#include "HeadMountedDisplayFunctionLibrary.h"

Source

/Engine/Source/Runtime/HeadMountedDisplay/Private/HeadMountedDisplayFunctionLibrary.cpp

Syntax

static void GetDeviceWorldPose
(
    UObject * WorldContext,
    const FXRDeviceId & XRDeviceId,
    bool & bIsTracked,
    FRotator & Orientation,
    bool & bHasPositionalTracking,
    FVector & Position
)

Remarks

Cross XR-System query that returns a specific device's position and orientation in world space.

this value is not late updated and will be behind the render thread

this value is not late updated and will be behind the render thread

Parameters

Parameter

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 -

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 -

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss