Handles.SnapToGrid

public static void SnapToGrid(Transform[] transforms, SnapAxis axis);

Parameters

transforms The transforms to snap.
axis The axes on which to apply snapping.

Description

Rounds each Transform.position to the closest multiple of EditorSnap.move.

Did you find this page useful? Please give it a rating: