Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/APlayerController
Description
Convert 2D screen position to World Space 3D position and direction. Returns false if unable to determine value.
| Name | DeprojectScreenPositionToWorld |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include Path | #include "GameFramework/PlayerController.h" |
UFUNCTION (BlueprintCallable, Category="Game|Player",
Meta=(DisplayName="Convert Screen Location To World Space", Keywords="deproject"))
bool DeprojectScreenPositionToWorld
(
float ScreenX,
float ScreenY,
FVector & WorldLocation,
FVector & WorldDirection
) const