TutorialsUnity Scripts

[Unity Script] Object Grid Snapping

If you want to create your own Build System in your game, this script will show you how to snap object to the grid while moving.


Final Result:

 

Step:

  1. Download C# class scripts: Grid Snap
  2. Add “BuildMover” class to any GameObject that want to snap with the grid.
  3. Try to dragging the object.

Leave a Reply

Your email address will not be published. Required fields are marked *