FViewport::ViewportToVirtualDesktopPixel

Transforms a coordinate in the local space of this viewport into a virtual desktop pixel.

Windows
MacOS
Linux

Override Hierarchy

References

Module

Engine

Header

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

Include

#include "UnrealClient.h"

Syntax

FIntPoint ViewportToVirtualDesktopPixel
(
    FVector2D ViewportCoordinate
) const

Remarks

Transforms a coordinate in the local space of this viewport into a virtual desktop pixel.

Returns

the transformed coordinate. It is in virtual desktop pixels.

Parameters

Parameter

Description

ViewportCoordiante

Normalized coordniate in the rate [0..1]; (0,0) is upper left and (1,1) is lower right.

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