Unity provides a visual grid in the Editor’s Scene viewAn interactive view into the world you are creating. You use the Scene View to select and position scenery, characters, cameras, lights, and all other types of Game Object. More info
See in Glossary, which can help precisely align GameObjectsThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary by snapping (moving) them to the nearest grid location.
You can snap a GameObject to a grid projected along the X, Y, or Z axes in several ways:
You can also transform a GameObject in increments without aligning it with the gridlines. If you need to change how much you are moving, rotating, or scaling, you can change the increment snap values.
By default, the grid is hidden, but you can make it visible and switch which axis it appears along. You can customize the grid in appearance and behavior by changing the following:
Many of these actions support keyboard shortcuts. You can see which key combinations are assigned to these actions and use the Shortcuts Manager to customize them.
You can open the Grid and Snap window from the menu (Edit > Grid and Snap Settings) or by using the grid visibility drop-down menu:
From the grid visibility drop-down menu (A), click the overflow menu icon (B).
Select Edit Grid and Snap Settings (C).
The Grid and Snap window let you perform the following actions:
Note: The settings on the Grid and Snap window are global to all Scene views.
This section provides information on how to perform these actions:
You can align a GameObject to either the closest grid point on a single axis, or on all axes at once.
To align a GameObject to the closest point on a grid for a specific axis:
From the Align Selection to Grid section, click the X, Y, or Z button that matches the axis you want to push to.
To align a GameObject on all axes at once:
Select the GameObject(s) you want to align to the grid.
Use the Ctrl+\ (Windows) or Command+\ (macOS) shortcut to push the GameObject(s) onto the grids on all axes.
Alternatively, you can open the Grid and Snap window and click the All Axes button from the Align Selection to Grid section.
To turn on automatic snapping to the grid:
When you enable automatic grid snapping, the Move, Rotate, and Scale transform tools snap the selected GameObject(s) to the grid along the active gizmo axis. If you need the GameObject to move in smaller increments, you can also transform it incrementally.
To move, rotate, or scale by increment snap values:
To change the default increment snap values:
Open the Grid and Snap window.
The Increment Snap section contains several properties that let you set the same value for all axes or different values:
Move: With the link icon selected, enter a uniform increment snap value for all axes, or unlink the axes and set different increment snap values in the X, Y, and Z axis properties.
Rotate: Enter a rotation increment value in degrees.
Scale: Enter a scale increment value as a scale factor. For example, if the Scale value is 2, the selected GameObject will scale at an increment of twice its original size.
This section provides information on customizing the following:
You can toggle the grid visibility button () on the Scene view ToolbarA row of buttons and basic controls at the top of the Unity Editor that allows you to interact with the Editor in various ways (e.g. scaling, translation). More info
See in Glossary to display or hide the grid on any axis (X, Y, Z). If you are in orthographic mode, Unity chooses the correct view.
To change which axis the grid appears on:
Open the grid visibility drop-down menu () from the toolbar.
From the Grid Axis section, select the axis where you want the grid to appear.
You can use the Grid and Snap window to set the size of the gridlines as they appear in the Scene view. This affects the appearance of the grid and how your GameObjects automatically snap to the grid, but doesn’t affect how much your GameObject(s) move, rotate, or scale in increments.
If you set a size for all axes at once, a uniform (square-based) grid appears. However, you can also use different values on any of the three axes to see a non-uniform (rectangular-based) grid. By default, the grid is set to a uniform distance (1 on all axes).
To resize the grid:
Open the Grid and Snap window.
The World Grid section contains several properties that let you set the same value for all axes or different values:
Use the Size property with the link icon selected to enter a uniform value for the visual grid (all grid lines the same length), or unlink the axes and specify a non-uniform distance between the grid lines for the X, Y, and Z.
For example, to create a rectangular grid on the x and y axes, unlink the axes and set X and Y to 1, and set Z to 2.
If you want to switch back to a uniform value between the grid lines:
Note: You can also use the keyboard shortcuts to increase and decrease the size of the grid:
To change the color of the visible grid lines in the Scene view:
Open the Unity Preferences page (go to Edit > Preferences on Windows or Unity > Preferences on macOS).
Click on the Colors category from the list to see the Colors page.
Select a new color using the Grid property’s color picker.
If the grid lines are too light or too dark, you can adjust them:
Open the grid visibility drop-down menu () from the toolbar.
From under the Grid Settings section, adjust the value of the Opacity property.
You can also use the following shortcuts to move the grid backward and forward along its axis:
Nudging the grid brings it closer (for example, if it is difficult to see your GameObject against a distant grid) or sends it farther away.
To reset the grid axis and opacity settings to their defaults:
Open the grid visibility drop-down menu () from the toolbar.
Click the overflow menu icon and then click Reset.
The grid appears on the y-axis again and the opacity is 0.5, but the visibility of the grid lines remains unchanged.
To reset the size of the grid to the default:
Open the Grid and Snap window by either method:
Next to the World Grid heading, click the gear icon ().
Click Reset.
Only the values under the World Grid section return to 1.
To reset the increment snap values to the default:
Open the Grid and Snap window by either method:
Next to the Increment Snap heading, click the gear icon ().
Click Reset.
Only the values under the Increment Snap section return to their original default values.
You can perform the following actions with these default Unity shortcuts:
Action | Default shortcut |
---|---|
Increase Grid Size |
Ctrl+] (Windows) or Command+] (macOS) |
Decrease Grid Size |
Ctrl+[ (Windows) or Command+[ (macOS) |
Nudge Grid Backward | Shift+[ |
Nudge Grid Forward | Shift+] |
Push to Grid (Align Selection to Grid) |
Ctrl+\ (Windows) or Command+\ (macOS) |
Reset Grid | (no shortcut by default) |
To change these default keyboard shortcuts, use the Shortcuts Manager.
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.