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 World Location To Screen Location", Keywords="project"))
bool ProjectWorldLocationToScreen
(
FVector WorldLocation,
FVector2D & ScreenLocation,
bool bPlayerViewportRelative
) const
Remarks
Convert a World Space 3D position into a 2D Screen Space position. true if the world coordinate was successfully projected to the screen.