Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/APlayerController
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include | #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
Remarks
Convert 2D screen position to World Space 3D position and direction. Returns false if unable to determine value.