UCanvas::Deproject

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

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h

Include

#include "Engine/Canvas.h"

Source

/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp

Syntax

void Deproject
(
    FVector2D ScreenPos,
    FVector & WorldOrigin,
    FVector & WorldDirection
) const

Remarks

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

Parameters

Parameter

Description

ScreenPos

Screen coordinates in pixels.

WorldOrigin

(out) World-space origin vector.

WorldDirection

(out) World-space direction vector.

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