Navigation
API > API/Runtime > API/Runtime/HeadMountedDisplay
Interface used by the camera component to figure out the final position of a motion tracked camera.
To reduce duplicated code, implementations should use the FXRCameraBase instead of implementing this interface directly.
| Name | IXRCamera |
| Type | class |
| Header File | /Engine/Source/Runtime/HeadMountedDisplay/Public/IXRCamera.h |
| Include Path | #include "IXRCamera.h" |
Syntax
class IXRCamera : public IIdentifiableXRDevice
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
IXRCamera() |
IXRCamera.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyHMDRotation
(
APlayerController* PC, |
Optionally called by APlayerController to apply the orientation of the headset to the PC's rotation. | IXRCamera.h | |
void CalculateStereoCameraOffset
(
const int32 ViewIndex, |
Calculates the offset for the camera position, given the specified eye pass, position and rotation. | IXRCamera.h | |
virtual bool GetPassthroughCameraUVs_RenderThread
(
TArray< FVector2D >& OutUVs |
Fetches the UV coordinates of an AR passthrough camera relative to the screen. | IXRCamera.h | |
bool GetUseImplicitHMDPosition() |
Gets the view offset mode to assume an implied HMD position | IXRCamera.h | |
void OverrideFOV
(
float& InOutFOV |
Override the Field of View for the player camera component. | IXRCamera.h | |
void SetupLateUpdate
(
const FTransform& ParentToWorld, |
Setup state for applying the render thread late update | IXRCamera.h | |
bool UpdatePlayerCamera
(
FQuat& CurrentOrientation, |
Apply the orientation and position of the headset to the Camera. | IXRCamera.h | |
void UseImplicitHMDPosition
(
bool bInImplicitHMDPosition |
Set the view offset mode to assume an implied HMD position | IXRCamera.h |