QUICK DEV TIP #32 UE4 - Custom Grid Snap Amounts

Today’s quick dev tip is one that going to be useful for level designers.

You probably knew about snapping to the grid but did you know that you can customise the snap values, editing and adding your own?

If you would prefer to watch the video version, check it out here

Below we have activated translation snapping and we have clicked on the drop-down next to it to see the currently available grid snap values. However, for my hypothetical example, my modular kit is built in increments of 25 units, so the current values available will not be suitable. This isn’t a problem because we can edit these values to suit our needs.

QDT32_Blog01_Setup.JPG
 

To do this you need to go to Edit then Editor Preferences. It is important to note here that changing settings in your Editor Preferences will affect your other projects associated with this engine. So just keep that in mind when editing the following settings.

QDT32_Blog02_EditorSettings.JPG
 

At the top we want to search for the word grid.

QDT32_Blog03_Search.JPG
 

We then want to scroll down until we reach the grid snapping area.

QDT32_Blog05_RollDown_GIF.gif
 

There are multiple sections here where you can edit translation, rotation and scale independently. For our example, we are looking for the translation which is at the top. We can add an extra element to the array. The problem with this is that it drops to the bottom. So for our case, it is better if we insert the 25 value between the 10 and the 50, to keep things organised.

QDT32_Blog06_AddTheSetting_GIF.gif
 

There is no need to restart the editor and if we go back to our grid snap amounts we can see the newly added 25.

QDT32_Blog07_NewValue.JPG

Being able to edit these values is a powerful thing to know about and will allow you to make your project work for you rather than you having to work to your project!

If you want more quick tips & tricks FOLLOW ME ON TWITTER @cbGameDev

Also, check out the parkour game I'm solo developing called Freerunners. Give it a wishlist if you like the way it looks!: https://store.steampowered.com/app/1430330/Freerunners/