In addition to regular Tilemaps, Unity provides both Hexagonal Point Top and Hexagonal Flat Top Tilemaps. Hexagonal tiles are often used in strategic tabletop games, because they have consistent distance between their centres and any point on their edge, and neighboring tiles always share edges. This makes them ideal for constructing almost any kind of large play area and allows players to make tactical decisions regarding movement and positioning.
要创建__六边形瓦片地图 (Hexagonal Tilemap),请按照与创建常规瓦片地图相同的步骤操作(菜单:__GameObject > 2D Object__),但在 2D Object__ 菜单中选择 Hexagonal 选项之一。
选择与当前使用的六边形瓦片方向相匹配的 Hexagonal Tilemap 选项。以下是 Hexagonal Point Top Tilemap 和 Hexagonal Flat Top Tilemap 的示例。
为六边形瓦片地图创建__瓦片面板 (Tile Palette)__ 时,将 Tile Palette 的 Grid 设置设为 Hexagon__,并将 Hexagon Type__ 设置为与当前使用的瓦片地图和瓦片相匹配的六角形类型,如下所示。