文档

Unity Engine


User Manual

Script Reference

Unity Engine


Tilemaps

Use the Tilemap system to create 2D levels.
阅读时间1 分钟最后更新于 23 天前

Build the game world and levels of your 2D project by painting tiles onto the scene.

Topic

Description

Introduction to tilemapsLearn about how to create a tilemap, and the different layouts of tilemaps.
Tile palettesCreate a tile palette from sprites or textures, then use the Tile Palette window to paint tiles onto a tilemap.
Paint tiles into the sceneCreate a tilemap in the scene, then paint tiles onto it using the tools in the Tile Palette window.
Brush picksSave a tile or group of tiles with its brush settings as a Brush Pick so you can reuse it.
Collision detection for tilesEnable collision detection on a tilemap so that GameObjects with a Collider 2D component collide with the tiles.
Hexagonal tilemapsCreate hexagonal tilemaps, which use a 2D grid of hexagonal tiles.
Isometric tilemapsCreate isometric tilemaps, which use a 2D grid to simulate a 3D environment and create the illusion of height and depth.
Custom tiles and brushesCreate tiles and brushes with custom behavior, or customize how Unity creates tiles from a texture.
Tilemaps referenceExplore the properties and settings of tilemap components, tile palettes, brushes, tiles, and grids.

Additional resources

  • 2D
  • Tilemap
    in the API reference documentation