Version: 2020.3
Painting on Tilemaps
Tilemap Collider 2D

Select Tool

The Select Tool InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
See in Glossary
window has the following two main sections in the Grid Selection and Modify Tilemap property settings.

Grid Selection

Use the Select Tool to select one or more cells. The Grid Selection Inspector window displays the contents and properties of the Tiles at the selected location.


Grid Selection Inspector window properties

Grid Selection Properties

Property Function
TileA simple class that allows a sprite to be rendered on a Tilemap. More info
See in Glossary
Displays the Tile currently set at the selected cell location. If you select multiple cells, and they display the same Tile, then that Tile’s name is shown. If you select multiple cells with different Tiles, this property is blank.
SpriteA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
See in Glossary
Displays the Sprite assigned to the Tile in the Tile property above. If you select multiple cells with the same Tile, then this displays the same Sprite. If you select multiple cells with different Tiles, this property is blank. This is grayed out by default, so you cannot edit it.
Color The vertex color of the Sprite. This is grayed out if Lock Color is enabled, so you cannot edit it.
Collider Type The ColliderAn invisible shape that is used to handle physical collisions for an object. A collider doesn’t need to be exactly the same shape as the object’s mesh - a rough approximation is often more efficient and indistinguishable in gameplay. More info
See in Glossary
Type of the Tiles at the selected location. This is grayed out by default and cannot be edited.
- Note: The following Transforms (Position, Rotation, Scale) are grayed out if Lock Transform is enabled and cannot be edited.
Position Enter the offset (in cells) for each axis to shift the Tile Sprites along the respective axis. The Tiles’ actual cell positions on the TilemapA GameObject that allows you to quickly create 2D levels using tiles and a grid overlay. More info
See in Glossary
remain unchanged.
Rotation This rotates one or more Tile Sprites at the selected location. Enter the rotation (in degrees) for each axis to rotate the Tile Sprites around the respective axis. The Tiles’ actual cell positions on the Tilemap remain unchanged.
Scale Scales the size of one or more Tile Sprites at the selected location. Enter the factor for each axis to scale the Tile Sprite by along the respective axis. The Tiles’ actual cell positions on the Tilemap remain unchanged.
Lock Color Select this to prevent changes to the Color of the Tile, and clear this to enable the Color property. When this property is grayed out, its state remains fixed. See the Tilemaps.TileFlags set in the Tile Asset to modify this property.
Lock Transform Select this to prevent changes to the Transforms of the Tile, and clear this to enable the Transform properties. When this property is grayed out, its state remains fixed. See the Tilemaps.TileFlags set in the Tile Asset to modify this property.
Delete Selection Select this button to delete the currently selected contents in the Tilemap.

Modify Tilemap

This section contains various functions and tools you can use to modify the Tilemap and selected contents in it. This consists of a 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
showing the available functions you can use to modify the Tilemap and selected contents in the Tilemaps, and a drop-down menu which provides different options for inserting or removing rows and columns of blank cells into the Tilemap.


The available functions in the Modify Tilemap section.

Gizmo toolbar

Select a function from the toolbar to activate GizmosA graphic overlay associated with a GameObject in a Scene, and displayed in the Scene View. Built-in scene tools such as the move tool are Gizmos, and you can create custom Gizmos using textures or scripting. Some Gizmos are only drawn when the GameObject is selected, while other Gizmos are drawn by the Editor regardless of which GameObjects are selected. More info
See in Glossary
which modifies selected contents in the Tilemap. The following table describes each option, with links to examples showing how they affect the Tilemap.


This is the default Tilemap that the Gizmo function examples are based on.

Gizmo Function
None No Gizmo is active or shown in the SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
view.
Move Activates and displays a Move Gizmo in the 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
. Use this to change the offset of the selected contents.
Rotate Activates and displays a Rotate Gizmo in the Scene view. Use this to change the rotation of the selected contents.
Scale Activates and displays a Scale Gizmo in the Scene view. Use this to change the scale of the selected contents.
Transform Activates and displays a Transform Gizmo in the Scene view. Use this to change the offset, rotation and scale of the selected contents all at once.

Gizmo function examples

None


Default Tilemap and selected cell location. No Gizmo is activated or visible.

Move


Left: Default Tilemap and selected cell location. Right: Offset changed for the selected cell locations.

Rotate


Left: Default Tilemap and selected cell location. Right: Rotation changed for the selected cell locations.

Scale


Left: Default Tilemap and selected cell location. Right: Scale changed for the selected cell locations.

Transform


Left: Default Tilemap and selected cell location. Right: Offset, rotation and scale of the selected cell locations are modified.

Modify Tilemap drop-down expanded options

The drop-down menu provides different options for inserting or removing rows and columns of blank cells onto the Tilemap. After selecting one of the drop-down menu options, enter the number of rows or columns to insert or remove into the box and select Modify.

The following table describes each option, with links to examples showing how they affect the Tilemap.


This is the default Tilemap that the following examples are based on.

Property Function
Insert Row Inserts one or more rows of blank cells at the selected location. Existing cells are displaced upward along the positive y-axis.
Insert Row Before Inserts one or more rows of blank cells below the selected location. Existing cells are displaced downward along the negative y-axis.
Delete Row Removes one or more rows of cells at the selected location and above. Existing cells above then collapse down to fill the space left by the deleted rows.
Delete Row Before Removes one or more rows of cells below the selected location. Existing cells below then shift upward along the positive y-axis to fill the space left by the deleted rows.
Insert Column Inserts one or more columns of blank cells at the selected location. Existing cells are displaced to the right along the positive x-axis.
Insert Column Before Inserts one or more columns of blank cells to the left of the selected cell. Existing cells are displaced to the left along the negative x-axis.
Delete Column Removes one or more columns of cells at the selected location and to its right. Existing cells then shift to the left along the negative x-axis to fill the space left by the deleted columns.
Delete Column Before Removes one or more columns of cells to the left of the selected cell. Existing cells shifted to the right along the positive x-axis to fill the space left by the deleted columns.

Examples of different drop-down menu options

Insert Row

Insert Row
Left: Default Tilemap and selected cell location. Right: Insert Row.

Insert Row Before

Insert Row Before
Left: Default Tilemap and selected cell location. Right: Insert Row Before.

Delete Row

Delete Row
Left: Default Tilemap and selected cell location. Right: Delete Row.

Delete Row Before

Delete Row Before
Left: Default Tilemap and selected cell location. Right: Delete Row Before.

Insert Column

Insert Column
Left: Default Tilemap and selected cell location. Right: Insert Column.

Insert Column Before

Insert Column Before
Left: Default Tilemap and selected cell location. Right: Insert Column Before.

Delete Column

Delete ColumnLeft: Default Tilemap and selected cell location. Right: Delete Column.

Delete Column Before

Delete Column Before
Left: Default Tilemap and selected cell location. Right: Delete Column Before.

Multiple cell selection

When multiple cells are selected, the lower-leftmost cell is the main point of reference when applying the Modify Tilemap options. See the following examples of selecting multiple cells then modifying the Tilemap.

Insert Row with multiple selected cells
Left: Default Tilemap with multiple cells selected. Right: Insert Row.

Insert Column with multiple selected cells
Left: Default Tilemap with multiple cells selected. Right: Insert Column.

Delete Row with multiple selected cells
Left: Default Tilemap with multiple cells selected. Right: Delete Row.

Delete Column with multiple selected cells
Left: Default Tilemap with multiple cells selected. Right: Delete Column.


  • 2020–08–17
  • 2020–01–07
  • Updated Select Tool functionality in Unity 2020.1 NewIn20201
Painting on Tilemaps
Tilemap Collider 2D