Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Blueprint/WidgetLayoutLibrary.h |
Include |
#include "Blueprint/WidgetLayoutLibrary.h" |
Source |
/Engine/Source/Runtime/UMG/Private/WidgetLayoutLibrary.cpp |
static bool ProjectWorldLocationToWidgetPositionWithDistance
(
APlayerController * PlayerController,
FVector WorldLocation,
FVector & ScreenPosition,
bool bPlayerViewportRelative
)
Convert a World Space 3D position into a 2D Widget Screen Space position, with distance from the camera the Z component. This takes into account any quality scaling as well.
true if the world coordinate was successfully projected to the screen.