Grid snapping in unity editor
There are virtual grid in the editor's Scene view that help you to align GameObjects snapping(moving) to the nearest grid You can change this grid to any axis x,y,or z. Aligning (Moving) to the grid GameObject can be move to the single axis or along all axis to the closest grid. To move a gameObject to closest grid open Grid and snap window by either method From Main unity menu, Choose Edit>Grid and Snapping Setting From the grid visible in scene view menu open the overflow menu and choose Edit Grid and Snap Setting and you can reset all grid settings by just clicking reset as shown in below image. in grid and snap setting you will find Align selection sector click on x, y, or z button or to all axis or you can did the same work by selecting the gameobject and pressing Ctrl + \ key together for windows and command+\ key for macOS. You can use increment Snap Section to modify how much you want to move and along which axis. Showing and Hiding Grid lines By toggling th...