UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FViewCameraState Struct Reference

#include <ToolContextInterfaces.h>

Public Member Functions

FVector Right () const
 
FVector Up () const
 
FVector Forward () const
 
float GetPDIScalingFactor () const
 
float GetFOVAngleNormalizationFactor () const
 

Public Attributes

FVector Position = FVector(EForceInit::ForceInit)
 
FQuat Orientation = FQuat(EForceInit::ForceInit)
 
float HorizontalFOVDegrees = 90
 
float OrthoWorldCoordinateWidth = 100
 
float AspectRatio = 1
 
bool bIsOrthographic = false
 
bool bIsVR = false
 
double DPIScale = 1.0
 

Detailed Description

FViewCameraState is a bucket of state information that a Tool might need to implement interactions that depend on the current scene view.

Member Function Documentation

◆ Forward()

FVector FViewCameraState::Forward ( ) const
inline
Returns
forward camera direction

◆ GetFOVAngleNormalizationFactor()

float FViewCameraState::GetFOVAngleNormalizationFactor ( ) const
inline
Returns
FOV normalization factor that should be applied when comparing angles

◆ GetPDIScalingFactor()

float FViewCameraState::GetPDIScalingFactor ( ) const
inline
Returns
scaling factor that should be applied to PDI thickness/size

◆ Right()

FVector FViewCameraState::Right ( ) const
inline
Returns
"right"/horizontal direction in camera plane

◆ Up()

FVector FViewCameraState::Up ( ) const
inline
Returns
"up"/vertical direction in camera plane

Member Data Documentation

◆ AspectRatio

float FViewCameraState::AspectRatio = 1

Current Aspect Ratio

◆ bIsOrthographic

bool FViewCameraState::bIsOrthographic = false

Is current view an orthographic view

◆ bIsVR

bool FViewCameraState::bIsVR = false

Is current view a VR view

◆ DPIScale

double FViewCameraState::DPIScale = 1.0

DPI scale

◆ HorizontalFOVDegrees

float FViewCameraState::HorizontalFOVDegrees = 90

Current Horizontal Field of View Angle in Degrees. Only relevant if bIsOrthographic is false.

◆ Orientation

FQuat FViewCameraState::Orientation = FQuat(EForceInit::ForceInit)

Current camera/head orientation

◆ OrthoWorldCoordinateWidth

float FViewCameraState::OrthoWorldCoordinateWidth = 100

Current width of viewport in world space coordinates. Only valid if bIsOrthographic is true.

◆ Position

FVector FViewCameraState::Position = FVector(EForceInit::ForceInit)

Current camera/head position


The documentation for this struct was generated from the following file: