RealDocs

FGeometry::GetAbsolutePositionAtCoordinates

function SlateCore Since 4.15
#include "Layout/Geometry.h"
Access: public Specifiers: inlineconst

Description

Returns the absolute position of a point on the widget surface identified by normalized (0–1) local coordinates, accounting for the full accumulated render transform.

Caveats & Gotchas

  • Uses the accumulated render transform, so it correctly handles rotated or skewed widgets. The equivalent manual calculation with AbsolutePosition + Scale * NormalCoords * Size would be wrong when a render transform is present.
  • Values outside [0,1] are valid and extrapolate beyond the widget bounds — useful for placing tooltips or popups just outside the widget edge.
  • Internally equivalent to LocalToAbsolute(NormalCoordinates * GetLocalSize()), so the same inverse-transform cost applies if you follow it up with AbsoluteToLocal.

Signature

inline UE::Slate::FDeprecateVector2DResult GetAbsolutePositionAtCoordinates(const UE::Slate::FDeprecateVector2DParameter& NormalCoordinates) const

Parameters

Name Type Description Default
NormalCoordinates const UE::Slate::FDeprecateVector2DParameter& Normalized coordinates where (0,0) is the top-left and (1,1) is the bottom-right of the widget.

Return Type

UE::Slate::FDeprecateVector2DResult

Example

Get absolute position of widget center and bottom-right corner C++
FVector2f Center = FVector2f(MyGeometry.GetAbsolutePositionAtCoordinates(FVector2f(0.5f, 0.5f)));
FVector2f BottomRight = FVector2f(MyGeometry.GetAbsolutePositionAtCoordinates(FVector2f(1.0f, 1.0f)));
UE_LOG(LogTemp, Log, TEXT("Center: %s  BottomRight: %s"), *Center.ToString(), *BottomRight.ToString());

Version History

Introduced in: 4.15

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.