UWidgetLayoutLibrary
Inherits: UObjectBase › UObjectBaseUtility › UObject › UBlueprintFunctionLibrary › UWidgetLayoutLibrary
#include "Blueprint/WidgetLayoutLibrary.h" Description
A Blueprint function library providing utility functions for querying viewport size, DPI scale, mouse position, and for projecting world-space locations into widget space. All functions are static and cosmetic (client-side only).
Caveats & Gotchas
- • Most functions are marked BlueprintCosmetic and will not execute on a dedicated server — guard server-side code accordingly.
- • DPI-scaled positions from this library are already in widget space; mixing them with raw screen-pixel coordinates will produce incorrect results.
Functions (8)
Viewport 8 ▼
| Access | Type | Name |
|---|---|---|
| public | function | UWidgetLayoutLibrary::GetMousePositionOnViewport |
| public | function | UWidgetLayoutLibrary::GetViewportSize |
| public | function | UWidgetLayoutLibrary::GetMousePositionScaledByDPI |
| public | function | UWidgetLayoutLibrary::GetPlayerScreenWidgetGeometry |
| public | function | UWidgetLayoutLibrary::GetViewportScale |
| public | function | UWidgetLayoutLibrary::GetViewportWidgetGeometry |
| public | function | UWidgetLayoutLibrary::ProjectWorldLocationToWidgetPosition |
| public | function | UWidgetLayoutLibrary::GetMousePositionOnPlatform |
Tags
Version History
Introduced in: 4.7
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?