Version: 2019.3
Creating Tiles
Tile Palette

Creating Tilemaps

Create a default TilemapA GameObject that allows you to quickly create 2D levels using tiles and a grid overlay. More info
See in Glossary
, from the GameObject menu (menu: GameObject > 2D Object > Tilemap). If you do not have these options, then 2D Tilemap Editor may not be installed. Download the 2D Tilemap Editor package via the Package Manager.

For the Hexagonal and Isometric Tilemap options, please refer to the documentation on their respective pages.

After selecting the Tilemap option, a new Grid GameObject is created with a child Tilemap GameObject 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
. The Grid GameObject determines the layout of its child Tilemaps.

The child Tilemap is comprised of a Tilemap component and Tilemap Renderer component. The Tilemap GameObject is where the Tiles are painted on.

Create additional Tilemaps by selecting the Grid GameObject or the Tilemap GameObject, and then go to the menu: GameObjectThe 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
> 2D ObjectA 2D GameObject such as a tilemap or sprite. More info
See in Glossary
> Tilemaps, or right-click on the selected GameObject and go to 2D Object > Tilemap

A Tilemap GameObject is then created and added to the Hierarchy as a child of the parent Grid GameObject, even if the sibling Tilemap GameObject was orignially selected.

Once the Tilemap(s) are created, adjust the Grid property settings to adjust the properties of its Tilemap children. Changes in the parent Grid GameObject affect all child GameObjects with the Tilemap, Tilemap Renderer and Tilemap Collider 2D components.

  • 2D Tilemap Editor is no longer included with the Editor installation and must be downloaded from Package Manager. 2019.2 NewIn20192
  • Tilemaps added in 2017.2 NewIn20172
Creating Tiles
Tile Palette
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。