Tilemap component reference
Grid component reference
Explore the properties you can use to customize the layout guide for tilemapsA GameObject that allows you to quickly create 2D levels using tiles and a grid overlay. More info
See in Glossary. For more information, refer to Painting tiles into the scene.
| Property |
Description |
| Cell Size |
Sets the size of the cells in the grid. |
| Cell Gap |
Sets the gap between cells. |
| Cell Layout |
Sets the layout of the cells. The options are:
-
Rectangle: Lays out the cells as a rectangular grid.
-
Hexagon: Lays out the cells as a hexagonal grid.
-
Isometric: Lays out the cells as an isometric grid.
-
Isometric Z as Y: Lays out the cells as an isometric grid, where each tile has a z value that represents its 3D height.
|
| Cell Swizzle |
Sets the orientation of the grid. The options are:
-
XYZ: Leaves the x, y, and z values unchanged. This usually means the grid faces the camera. This is the default.
-
XZY: Swaps the y and z values. This usually means the grid lies flat in 3D space.
-
YXZ: Swaps the x and y values. This usually means the grid faces the camera but is rotated 90°.
-
YZX: Shuffles all three values. This usually means the grid lies flat in 3D space.
-
ZXY: Shuffles all three values. This usually means the grid faces right.
-
ZYX: Reverses the values. This usually means the grid faces left.
|
Additional resources
Tilemap component reference
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。