UCanvas::K2_Deproject

Performs a deprojection of a screen space coordinate using the projection matrix set up for the Canvas.

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 K2_Deproject
(
    FVector2D ScreenPosition,
    FVector & WorldOrigin,
    FVector & WorldDirection
)

Remarks

Performs a deprojection of a screen space coordinate using the projection matrix set up for the Canvas.

Parameters

Parameter

Description

ScreenPosition

Screen space position to deproject to the World.

WorldOrigin

Vector which is the world position of the screen space position.

WorldDirection

Vector which can be used in a trace to determine what is "behind" the screen space position. Useful for object picking.

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