FGeometry::LocalToRoundedLocal

Translates the local coordinates into local coordinates that after being transformed into absolute space will be rounded to a whole number or approximately a whole number.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Layout/Geometry.h

Include

#include "Layout/Geometry.h"

Syntax

FVector2D LocalToRoundedLocal
(
    FVector2D LocalCoordinate
) const

Remarks

Translates the local coordinates into local coordinates that after being transformed into absolute space will be rounded to a whole number or approximately a whole number. This is important for cases where you want to show a popup or a tooltip and not have the window start on a half pixel, which can cause the contents to jitter in relation to eachother as the tooltip or popup moves around.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss