Unity は、通常の タイルマップ に加えて、Hexagonal Point Top (上がとがった六角形) タイルマップと Hexagonal Flat Top (上が平らな六角形) タイルマップの両方を提供します。六角形のタイルは、戦略的な卓上ゲームで頻繁に使用されます。なぜなら、六角形のタイルは、中心と角のどの点との距離も一定であり、隣接するタイルは常に辺を共有しているからです。これにより、ほぼあらゆる種類の大きなプレイエリアを構築するのに理想的であり、プレイヤーは移動や配置に関して戦術的な決定を行なうことができます。
Hexagonal Tilemap (六角形タイルマップ) の作成は、タイルマップの作成 と同じ手順 (GameObject > 2D Object) です。2D Object メニューの Hexagonal タイルマップの 1 つを選択してください。
使用している六角形タイルの向きに一致する 六角形タイルマップ を選択します。以下は Hexagonal Point Top Tilemap と Hexagonal Flat Top Tilemap の例です。
六角タイルマップの Tile Palette を作成する場合は、Tile Palette の Grid 設定を Hexagon に設定し、使用しているタイルマップとタイルに一致する Hexagon Type を選択します。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.