Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/USlateBlueprintLibrary
Description
Translates a screen position in pixels into the local space of a widget with the given geometry. If bIncludeWindowPosition is true, then this method will also remove the game window's position (useful when in windowed mode).
| Name | ScreenToWidgetLocal |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/SlateBlueprintLibrary.h |
| Include Path | #include "Blueprint/SlateBlueprintLibrary.h" |
| Source | /Engine/Source/Runtime/UMG/Private/SlateBlueprintLibrary.cpp |
UFUNCTION (BlueprintPure, Category="User Interface|Geometry",
Meta=(WorldContext="WorldContextObject", DisplayName="ScreenToLocal"))
static void ScreenToWidgetLocal
(
const UObject * WorldContextObject,
const FGeometry & Geometry,
FVector2D ScreenPosition,
FVector2D & LocalCoordinate,
bool bIncludeWindowPosition
)