アイソメトリックタイルマップをペイントするための タイルパレット を作成するには、以下の手順を行います。
Tile Palette ウィンドウを開きます (Window > 2D > Tile Palette)。
Create New Palette を選択します。
Grid をペイントする Isometric または Isometric Z As Y タイルマップと同じレイアウトに設定します。
Cell Size を Manual に設定します。X と Z はデフォルト値のままにしますが、Y をタイルマップのセルサイズの Y 値と同じ値に設定します。この値は、タイルマップの投影法のタイプによって異なります。詳細は、アイソメトリックタイルマップの作成 ページを参照してください。
設定を完了するために Create を選択し、新しい タイルパレットアセット を作成します。
タイルパレットを変更するには、アセットフォルダー内のアセットをダブルクリックして プレハブ として開き、そこで変更します。
Isometric Z as Y Tilemap 上でタイルをペイントする場合、Z Position の値を設定することで、ペイントする Grid の Z Position を定義します。このタイプのタイルマップでは、Z Position の値は、Y 軸に沿ったオフセットに変換され、異なる Z Position でペイントされたタイルは、タイルマップ上で異なる高さに見えます。
Z Position の編集は Tilemap Palette の一番下で行います。
任意の値 (整数のみ) を入力して Z Position を調整します。タイルは、値が変更またはリセットされるまで、設定された Z 位置でグリッド上にペイントされます。値をデフォルトの 0 に戻すには、Reset を選択します。
シーンビューで、ブラシプレビューは、タイルを以下の両方で表示します。セルの元の位置 (Z 値が 0) では青い輪郭で表示し、Z-As-Y オフセットを適用した描画位置では白い輪郭で表示します。
タイルブラシを選択した状態で、以下のショートカットキーを使用して異なる Z 位置に素早く切り替えることができます。
ショートカットキー | コマンド |
---|---|
- | Z Position を 1 増やす |
= | Z Position を 1 減らす |
タイルを削除するには、削除するタイルと同じ Z Position に 消しゴム を設定します。 消しゴムは、異なる Z Position で描画されたタイルは消去しません。
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.