Navigation
API > API/Plugins > API/Plugins/XRBase
Inheritance Hierarchy
- IXRCamera
- FHMDSceneViewExtension
- FDefaultXRCamera
References
| Module | XRBase |
| Header | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/DefaultXRCamera.h |
| Include | #include "DefaultXRCamera.h" |
Syntax
class FDefaultXRCamera :
public IXRCamera,
public FHMDSceneViewExtension
Remarks
Default base implementation of IXRCamera. Can either be used directly by implementations or extended with platform-specific features.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FQuat | DeltaControlOrientation | ||
| FRotator | DeltaControlRotation | ||
| const int32 | DeviceId | ||
| IXRTrackingSystem * | TrackingSystem |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDefaultXRCamera
(
const FAutoRegister&, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from IXRCamera
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyHMDRotation
(
APlayerController* PC, |
Optionally called by APlayerController to apply the orientation of the headset to the PC's rotation. | |
| void | CalculateStereoCameraOffset
(
const int32 ViewIndex, |
Calculates the offset for the camera position, given the specified eye pass, position and rotation. | |
| bool | Returns current setting controlling whether to assume an implied hmd position | ||
| void | OverrideFOV
(
float& InOutFOV |
Override the Field of View for the player camera component. | |
| void | SetupLateUpdate
(
const FTransform& ParentToWorld, |
Setup state for applying the render thread late update | |
| bool | UpdatePlayerCamera
(
FQuat& CurrentOrientation, |
Apply the orientation and position of the headset to the Camera. | |
| void | UseImplicitHMDPosition
(
bool bInImplicitHMDPosition |
Set the view offset mode to assume an implied HMD position |
Overridden from IIdentifiableXRDevice
| Type | Name | Description | |
|---|---|---|---|
| int32 | IIdentifiableXRDevice interface: |
Overridden from IXRSystemIdentifier
| Type | Name | Description | |
|---|---|---|---|
| FName | Returns a unique identifier that's supposed to represent the third party system that this object is part of (Vive, Oculus, PSVR, etc.). |
Overridden from ISceneViewExtension
| Type | Name | Description | |
|---|---|---|---|
| void | BeginRenderViewFamily
(
FSceneViewFamily& InViewFamily |
Called on game thread when view family is about to be rendered. | |
| bool | IsActiveThisFrame_Internal
(
const FSceneViewExtensionContext& Context |
FWorldSceneViewExtension interface: | |
| void | PreRenderView_RenderThread
(
FRDGBuilder& GraphBuilder, |
Called on render thread at the start of rendering, for each view, after PreRenderViewFamily_RenderThread call. | |
| void | PreRenderViewFamily_RenderThread
(
FRDGBuilder& GraphBuilder, |
Called on render thread at the start of rendering. | |
| void | SetupView
(
FSceneViewFamily& InViewFamily, |
Called on game thread when creating the view. | |
| void | SetupViewFamily
(
FSceneViewFamily& InViewFamily |
ISceneViewExtension interface: |