Version: Unity 6.5 (6000.5)
Language : English
Paint tiles into the scene
Tile palette Scene view overlays reference

Paint tiles into the scene

After you create a tile palette, create a tilemap in the scene and paint your tiles onto it.

Create a tilemap in the scene

  1. Make sure the 2D Sprite package is installed in your project. For more information, refer to set up your project for 2D games.
  2. In the Hierarchy window, right-click and select 2D Object > Tilemap to display the available tilemap types.
  3. Select the tilemap type that matches your tile palette. The default tilemap type is Rectangular.

Unity creates the following:

  • A grid GameObject. This is a layout guide that extends infinitely in all directions.
  • A child tilemap GameObject. This is the tilemap that you paint your tiles onto.

Select the grid or the tilemap to display its grid in the Scene view.

Paint tiles onto the tilemap

Follow these steps:

  1. Open the Tile Palette window and select a tile palette or tileset.

  2. Set Active Target () to the tilemap you want to paint onto.

  3. In the toolbar, select the Paint with Active Brush () tool.

  4. Select a tile from the tile palette. This makes the tile the active brush and highlights it with a white outline. To select multiple tiles, click and drag.

    To select a tile from the tilemap in the Scene view instead of the tile palette, hold Ctrl (macOS: Cmd) and select a tile in the Scene view.

  5. Paint into the Scene view.

Note: If you paint with a set of multiple tiles, the brush preview can change as the cursor hovers over neighboring rows or columns. This effect is more pronounced when you paint on hexagonal tilemaps.

To fill areas with tiles instead, or draw lines or paint random tiles, use the other tools and scriptable brushes in the Tile Palette window. For more information, refer to Tile Palette editor tools.

Move and edit tiles

To select a tile in the Scene view for editing, follow these steps:

  1. In the Tile Palette window, select the Select () tool in the toolbar.
  2. Select a tile in the Scene view, or click and drag to select a group of tiles.

You can then do the following:

  • To move a tile, select the Move () tool in the toolbar, then click and drag the tile to the new location.
  • To change the size of a tile, in the Inspector window, edit the Scale properties in the Grid Selection Properties section.

When you select a tile with the Select tool, the Inspector window displays more properties and settings for editing the tile. For more information, refer to Grid selection properties reference.

Delete tiles

To delete a tile in the Scene view, use one of the following methods:

  • Select a tile with the Select tool, then press the Delete (macOS: Backspace) key.
  • Select the Paint with Active Brush tool, then hold the Shift key while clicking.
  • Select the Erase with Active Brush tool (), then click tiles. To erase multiple tiles at a time, select the Paint with Active Brush tool first, then click and drag an area on the tile palette that’s the size you need.

Add another tilemap to the grid

You can add multiple tilemaps to a grid.

To add a tilemap, in the Hierarchy window, right-click a grid GameObject then select 2D Object > Tilemap.

Important: If the new tilemap has a different type to the grid, Unity displays a warning dialog. Select Continue to change the Cell Layout property of the grid to match the type of the new tilemap. The warning dialog doesn’t appear if you use Unity in headless mode.

Additional resources

Paint tiles into the scene
Tile palette Scene view overlays reference