APlayerController::DeprojectMousePositionToWorld

Convert current mouse 2D position to World Space 3D position and direction.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h

Include

#include "GameFramework/PlayerController.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerController.cpp

Syntax

bool DeprojectMousePositionToWorld
(
    FVector & WorldLocation,
    FVector & WorldDirection
) const

Remarks

Convert current mouse 2D position to World Space 3D position and direction. Returns false if unable to determine value.

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