FViewCameraState

[FViewCameraState](API\Runtime\InteractiveToolsFramework\FViewCameraState) is a bucket of state information that a Tool might need to implement interactions that depend on the current scene view.

Choose your operating system:

Windows

macOS

Linux

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/InteractiveToolsFramework/Public/ToolContextInterfaces.h

Include

#include "ToolContextInterfaces.h"

Syntax

struct FViewCameraState

Remarks

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

Variables

Name Description

Public variable

float

 

AspectRatio

Current Aspect Ratio

Public variable

bool

 

bIsOrthographic

Is current view an orthographic view

Public variable

bool

 

bIsVR

Is current view a VR view

Public variable

float

 

HorizontalFOVDegrees

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

Public variable

FQuat

 

Orientation

Current camera/head orientation

Public variable

float

 

OrthoWorldCoordinateWidth

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

Public variable

FVector

 

Position

Current camera/head position

Functions