USlateBlueprintLibrary
#include "Blueprint/SlateBlueprintLibrary.h" Description
Blueprint function library exposing Slate geometry and coordinate conversion utilities to Blueprints and C++. Provides the recommended way to translate between local widget space, absolute Slate space, and viewport/screen pixel space.
Caveats & Gotchas
- • All functions are static BlueprintPure — they take the geometry as an explicit parameter rather than being called on a widget object. You must have access to the FGeometry of the widget (available in event bindings such as OnMouseMove or via GetCachedGeometry).
- • Viewport-relative functions require a WorldContextObject to resolve the current GameViewportClient. In non-game contexts (e.g., editor utility widgets) the viewport may be null, causing no-ops or zero results.
Functions (9)
Geometry 9 ▼
| Access | Type | Name |
|---|---|---|
| public | function | USlateBlueprintLibrary::AbsoluteToLocal |
| public | function | USlateBlueprintLibrary::LocalToAbsolute |
| public | function | USlateBlueprintLibrary::LocalToViewport |
| public | function | USlateBlueprintLibrary::ScreenToViewport |
| public | function | USlateBlueprintLibrary::AbsoluteToViewport |
| public | function | USlateBlueprintLibrary::Scalar_AbsoluteToLocal |
| public | function | USlateBlueprintLibrary::ScreenToWidgetAbsolute |
| public | function | USlateBlueprintLibrary::ScreenToWidgetLocal |
| public | function | USlateBlueprintLibrary::Vector_LocalToAbsolute |
Tags
Version History
Introduced in: 4.7
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | TransformScalar* and TransformVector* functions deprecated; replaced by correctly-named Scalar_* and Vector_* variants. |
| 5.5 | stable | — |
Feedback
Was this helpful?