Navigation
API > API/Runtime > API/Runtime/HeadMountedDisplay
Used to get unreal world space or tracking space positions in XR. Working only with unreal world space coordinates is almost always simpler and should be generally preferred. There are specific cases where raw XRTrackingSpace coordinates may be useful, particularly in apps where world scale is not 1:1 or where it changes.
| Name | EXRSpaceType |
| Type | enum |
| Header File | /Engine/Source/Runtime/HeadMountedDisplay/Public/HeadMountedDisplayTypes.h |
| Include Path | #include "HeadMountedDisplayTypes.h" |
Syntax
enum EXRSpaceType
{
UnrealWorldSpace,
XRTrackingSpace,
}
Values
| Name | Remarks |
|---|---|
| UnrealWorldSpace | The unreal coordinate system. Affected by world scaling and the TrackingToWorldTransform. |
| XRTrackingSpace | The coordinate system the XR Device is tracking itself in. |