Create a tilemapA GameObject that allows you to quickly create 2D levels using tiles and a grid overlay. More info
See in Glossary that you paint your tiles onto, and a parent grid that acts as a layout guide.
To start your tilemap project, you have to create a tilemap asset that the tile assets are placed on. There are multiple types of tilemaps and you begin by selecting the one that best fits your project. The following are the tilemap types available:
The default tilemap is Rectangular. Refer to the respective pages for Hexagonal and Isometric tilemaps for more information on their specific features and uses.
Make sure you have the 2D Tilemap Editor package installed. If the package isn’t installed, refer to Package Manager.
To create a tilemap asset within the Hierarchy window, follow these steps:
To create a tilemap from the Tile Palette window, follow these steps:
To create a tilemap based on an existing tile palette’s settings, follow these steps:
To create create additional tilemaps on the same grid:
When you create a tilemap on an existing Grid GameObject, the tilemap might use a different cell layout to the grid. If this happens, Unity detects the mismatch and displays a warning.
Select Continue to continue creating the child tilemap, so Unity changes the parent grid’s Cell Layout property to match the child tilemap. Alternately you can select Cancel to stop creating the new child tilemap.
Note: If you run the Unity Editor in headless mode, this dialog doesn’t appear and the Editor creates the tilemaps automatically as if you selected Continue.