FSceneView::DeprojectFVector2D

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

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

void DeprojectFVector2D
(
    const FVector2D & ScreenPos,
    FVector & out_WorldOrigin,
    FVector & out_WorldDirection
) const

Remarks

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

Parameters

Parameter

Description

ScreenPos

screen coordinates in pixels

out_WorldOrigin

(out) - world-space origin vector

out_WorldDirection

(out) - world-space direction vector

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback