A Unity tool designed to automatically snap objects to a grid in the editor, ensuring consistent positioning and alignment in your scenes. This asset is particularly useful for games or applications that require precise object placement, like tile-based levels.
- Grid Snapping: Automatically snaps objects to a grid of a specified size.
- Toggleable System: Easily enable or disable grid snapping via a single variable.
- Customizable Grid Size: Define the size of the grid to match your project's requirements.
- Editor Integration: Works seamlessly in edit mode, keeping your scene organized during development.
- Download the
LockGrid.unitypackage
file from this repository. - Open your Unity project and go to Assets > Import Package > Custom Package.
- Select the
LockGrid.unitypackage
file and click Import.
- Add the
LockGrid
script to any GameObject you want to snap to the grid. - Configure the settings:
- Enable Grid: Toggle this option in the Inspector to turn grid snapping on or off.
- Tile Size: Specify the size of the grid tiles.
- The GameObject's position will automatically snap to the nearest grid point in edit mode.
This project is licensed under the MIT License - see the LICENSE file for details.