Unity 简记 (1) - TileMap

## Tilemap is a tool to quickly build unity comes with 2D scene, the advantage of saving time and effort,

1 Use

  1. Create a scene in Tilemap

Here Insert Picture Description

  1. Open TilePalette

Here Insert Picture Description

3. Create a new Palette, cut the map into a good pull, tap to draw a grid, and then tap the pen, you can start painting

2. Points

1. If the painted image is smaller than the box
Here Insert Picture Description

You can change the size of the grid cell size of the Grid is
Here Insert Picture Description
if there are visible gaps to share the following question Bowen

2. collision binding body, adding to the Grid Tilemap Tilemap collider2D and rigidbody 2D components, and then from the ground in order to allow gravity fall or be it on the surface of an object pressed down, set the rigidbody 2D static (static) rigid body
Here Insert Picture Description

3. Direct Tilemap collider2D components are each square plus collision body, in fact, can be optimized, and then to add Composite Collider2D components, go Used By Composite check on Tilemap Collider2D that can automatically optimize a composite body collision body

Share Bowen:

Unity Tilemap used to quickly create 2D game world: https://www.jianshu.com/p/d8fe795bf6c7

Unity in Tilemap solve the gap problem: http://liaoyulei.cn/2017/05/08/fix-unity-tilemap-gap/

Unity generates a random room, cave (2D, 3D Map) summary: https://blog.csdn.net/l773575310/article/details/72803191

Tiled combined with Unity achieve tile map --Tiled2Unity articles: https://blog.csdn.net/lzhq1982/article/details/75356478

Tiled combined with Unity achieve tile map --Unity actual articles: https://blog.csdn.net/lzhq1982/article/details/75425915

How to use Unity comes TileMap make a hexagon map: https://cowlevel.net/article/2004567

Guess you like

Origin www.cnblogs.com/AMzz/p/11802544.html