SnapToGrid

Author: Hayden Peake (Hayden)

Description
Snaps objects to a grid in 3 dimensions. The grid spacing may be different for each axis.

Usage
You must place the script in a folder named Editor in your project's Assets folder for it to work properly.

Select some objects in the Scene view or Hierarchy window, then choose GameObject→Snap to Grid from the menu (or press control G). Each selected object will be independently snapped to a unit grid.

If you require a different grid spacing, change them in Edit→Snap Settings.