Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.57 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.57 KB

Snap to Grid Tool - A script for easy snapping of object positions and scales to a grid within Unity Editor.

Overview

The Snap to Grid Tool script provides a convenient way to snap the position and scale of objects within the Unity Editor to a grid. It offers flexibility with customizable snapping options along different axes and adjustable step sizes.

Features

  • Snap object position and scale to a grid.
  • Customizable snapping options for X, Y, and Z axes.
  • Adjustable positioning step and offset.
  • Support for scaling step.

Installation

  1. Download the UnityEditorSnapToGrid.cs script.
  2. Add the script to your Unity project's scripts folder.

Usage

  1. Attach the UnityEditorSnapToGrid.cs script to the GameObjects you want to snap to the grid.
  2. Adjust the script's properties in the Inspector panel based on your requirements.
  3. During scene editing in the Unity Editor, the script will automatically snap the object's position and scale to the specified grid.

Example

See the CubeExample.prefab file for an example of how to use the Snap to Grid Tool script with a cube GameObject.

License

GNU AGPLv3 Image

This program is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.