Automatic Grid Snap Script

This C# Unity script was provided by Portalarium as part of the Unity Dungeon Pack assets for Shroud of the Avatar. It allows meshes to be snapped to specific points for alignment and tiling.

AutoGridSnap Script

AutoGridSnap Script

Bill Kirkman, one of the game’s designers, put the script together with the help of some scripts available on the Unity wiki and in the community, and then expanded it for use in Shroud of the Avatar. He mentioned that some of the rotations may get a little off, especially when multiple objects are selected.

To use the script, simply download and extract the file below. In Unity, click Assets -> Import New Asset, select AutoGridSnap.cs and click Import. To activate it, press Ctrl+L to display the Auto-Snap window. While it is open, moving and rotating objects will use the specified measurements. The ideal specifications for Shroud of the Avatar are X=8, Y=5, Z=8, and 90-degree rotate. Note that the Auto-Snap window must remain open while manipulating objects for the snapping to occur.

Thanks to Portalarium for developing the script, and for allowing us to share it!

Browncoat Jayson

Join me in New Britannia!

You may also like...

1 Response

  1. November 14, 2013

    […] “Dungeon Master” Bill Kirkman released an alternative version of the script included with the Dungeon Kit assets. He mentioned that some of the rotations may get a little off, especially when multiple objects are […]

Leave a Reply

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