DeprojectScreenToWorld

Overload list

Windows
MacOS
Linux
Name Description

Public function Static

void

 

DeprojectScreenToWorld

(
    const FVector2D& ScreenPos,
    const FIntRect& ViewRect,
    const FMatrix& InvViewProjMatrix,
    FVector& out_WorldOrigin,
    FVector& out_WorldDirection
)

Overload to take a single combined view projection matrix.

Public function Static

void

 

DeprojectScreenToWorld

(
    const FVector2D& ScreenPos,
    const FIntRect& ViewRect,
    const FMatrix& InvViewMatrix,
    const FMatrix& InvProjMatrix,
    FVector& out_WorldOrigin,
    FVector& out_WorldDirection
)

Transforms 2D screen coordinates into a 3D world-space origin and direction

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