Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FViewport
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FIntRect CalculateViewExtents
(
float AspectRatio, |
Calculates the view inside the viewport when the aspect ratio is locked. | UnrealClient.h | |
static FIntRect CalculateViewExtents
(
float AspectRatio, |
Calculates the view inside the viewport when the aspect ratio is locked. | UnrealClient.h |
CalculateViewExtents(float, const FIntRect &)
Description
Calculates the view inside the viewport when the aspect ratio is locked. Used for creating cinematic bars.
| Name | CalculateViewExtents |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/UnrealClient.h |
| Include Path | #include "UnrealClient.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealClient.cpp |
FIntRect CalculateViewExtents
(
float AspectRatio,
const FIntRect & ViewRect
)
constrained view rectangle
Parameters
| Name | Remarks |
|---|---|
| Aspect | [in] ratio to lock to |
| ViewRect | [in] unconstrained view rectangle |
CalculateViewExtents(float, float, const FIntRect &, const FIntPoint &)
Description
Calculates the view inside the viewport when the aspect ratio is locked. Used for creating cinematic bars.
| Name | CalculateViewExtents |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/UnrealClient.h |
| Include Path | #include "UnrealClient.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealClient.cpp |
static FIntRect CalculateViewExtents
(
float AspectRatio,
float DesiredAspectRatio,
const FIntRect & ViewRect,
const FIntPoint & DestSize
)
constrained view rectangle
Parameters
| Name | Remarks |
|---|---|
| AspectRatio | [in] ratio to lock to |
| DesiredAspectRatio | [in] the aspect ratio of the viewport |
| ViewRect | [in] unconstrained view rectangle |
| DestSize | [in] the size of the the viewport |