Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UWidgetLayoutLibrary
Description
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.
| Name | ProjectWorldLocationToWidgetPositionWithDistance |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/WidgetLayoutLibrary.h |
| Include Path | #include "Blueprint/WidgetLayoutLibrary.h" |
| Source | /Engine/Source/Runtime/UMG/Private/WidgetLayoutLibrary.cpp |
static bool ProjectWorldLocationToWidgetPositionWithDistance
(
const APlayerController * PlayerController,
FVector WorldLocation,
FVector & ScreenPosition,
bool bPlayerViewportRelative
)
true if the world coordinate was successfully projected to the screen.