Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint > API/Runtime/UMG/Blueprint/UWidgetLayoutLibrary
References
| Module | UMG |
| 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
&40;
APlayerController &42; PlayerController,
FVector WorldLocation,
FVector & ScreenPosition,
bool bPlayerViewportRelative
&41;
Remarks
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.