Snap to grid (float)

Snap to grid (float)

Windows
MacOS
Linux

Snaps a value to the nearest grid multiple. E.g., Location = 5.1, GridSize = 10.0 : return value = 10.0 If GridSize is 0 Location is returned if GridSize is very small precision issues may occur.

Target is Kismet Math Library

Snap to grid (float)
Location
0.0
Grid Size
0.0
Return Value
0.0

Inputs

Location
Float
Grid Size
Float

Outputs

Return Value
Float

Snaps a value to the nearest grid multiple. E.g., Location = 5.1, GridSize = 10.0 : return value = 10.0 If GridSize is 0 Location is returned if GridSize is very small precision issues may occur.

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