You are on page 1of 10

Tilemap

The Tilemap component is a system which stores and handles Tile Assets f

or creating 2D levels. It transfers the required information from the Tiles p

laced on it to other related components such as the Tilemap Renderer and t

he Tilemap Collider 2D.

Download the 2D Tilemap Editor package via the Package Manager, as it i

s not included in the Unity Editor installation.


18-07-2020
Use this component with the Grid component, or a parent Grid GameObject, to lay out

Tiles on the associated Grid. When creating a Tilemap (menu: GameObject > 2D Obje

ct > Tilemap), Unity automatically creates a Grid GameObject and sets it as the parent

of a child Tilemap GameObject.

To modify and place Tiles onto a Tilemap, open the Tile Palette (menu: Window > 2D

> Tile Palette). Refer to the documentation on Tile Palette and Painting Tilemaps for m

ore information.

18-07-2020
18-07-2020
18-07-2020
18-07-2020
Tilemap Workflow

 Create a Tilemap GameObject
. A Grid GameObject is also created automatically in the process.

 Create Tile Assets directly, or generate Tiles from Sprites


.

 Create a Tile Palette with selected Tile Assets.

 Paint on a Tilemap with your Tile Palette.

 Optionally, you can attach the Tilemap Collider 2D component to your Tilemaps to make the
m interact with Physics2D.
18-07-2020
Grid

 The Grid component is a guide which helps to align GameObjects


 based on a selected layout. The component transforms Grid cell positions to the corresponding l
ocal coordinates of the GameObject.

 The Transform component then converts these local coordinates to world space or global coordi
nates.

18-07-2020
18-07-2020
18-07-2020

You might also like