FSceneView::ProjectWorldToScreen

Transforms 3D world-space origin into 2D screen coordinates

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/SceneView.h

Include

#include "SceneView.h"

Source

/Engine/Source/Runtime/Engine/Private/SceneView.cpp

Syntax

static bool ProjectWorldToScreen
(
    const FVector & WorldPosition,
    const FIntRect & ViewRect,
    const FMatrix & ViewProjectionMatrix,
    FVector2D & out_ScreenPos
)

Remarks

Transforms 3D world-space origin into 2D screen coordinates

Parameters

Parameter

Description

WorldPosition

the 3d world point to transform

ViewRect

view rectangle

ViewProjectionMatrix

combined view projection matrix

out_ScreenPos

(out) - screen coordinates in pixels

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