FViewport::CalculateViewExtents

Calculates the view inside the viewport when the aspect ratio is locked.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/UnrealClient.h

Include

#include "UnrealClient.h"

Source

/Engine/Source/Runtime/Engine/Private/UnrealClient.cpp

Syntax

FIntRect CalculateViewExtents
(
    float AspectRatio,
    const FIntRect & ViewRect
)

Remarks

Calculates the view inside the viewport when the aspect ratio is locked. Used for creating cinematic bars.

Returns

constrained view rectangle

Parameters

Parameter

Description

Aspect

[in] ratio to lock to

ViewRect

[in] unconstrained view rectangle

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss