Tilemap (タイルマップ) コンポーネントは 2D のレベルを作成するために タイルアセット を格納し処理します。Tilemap コンポーネントは、そこに保存されたタイルの必要な情報を、Tilemap Renderer や Tilemap Collider 2D などの他の関連コンポーネントに転送します。
2D Tilemap Editor パッケージは、2D テンプレート を使用してプロジェクトを作成するときに自動的にインストールされます。2D Tilemap Editor は、Package Manager を介して Unity レジストリから直接インストールできます。
タイルマップのペイント 用のタイルを作成、編集、選択するには、タイルパレット (メニュー: Window > 2D > Tile Palette) を参照して、その機能とツールの詳細について参照してください。
プロパティ | 説明 | |
---|---|---|
Animation Frame Rate | タイルアニメーションを再生するフレームレートを設定します。 この値を増減すると、タイルアニメーションのフレームレートが変更されます。 例えば、2 に設定すると、タイルアニメーションは基本フレームレートの 2 倍で再生されます。 3 に設定すると、タイルアニメーションは基本フレームレートの 3 倍で再生されます。 | |
Color | この Tilemap 上のタイルにティント (色) として適用する色を選択します。白 (デフォルト) に設定すると、Unity はタイルを無色でレンダリングします。 | |
Tile Anchor | タイルマップ上のタイルアンカーの位置をオフセットするための XYZ 軸方向の値 (セル単位) を入力します。 | |
Orientation | タイルマップ上のタイルの向きを選択します。以下の各オプションは、選択された平面に沿ってタイルの向きを変えることで同じ機能を実行します。 | |
XY | Unity は、タイルを XY 面に沿って配置します。 | |
XZ | Unity は、タイルを XZ 面に沿って配置します。 | |
YX | Unity は、タイルを YX 面に沿って配置します。 | |
YZ | Unity は、タイルを YZ 面に沿って配置します。 | |
ZX | Unity は、タイルを ZX 面に沿って配置します。 | |
ZY | Unity は、タイルを ZY 面に沿って配置します。 | |
Custom | これを選択すると、以下のカスタムの方向設定が可能になります。 | |
Offset | カスタム方向の位置オフセットを設定します。 このオプションは、タイルマップの Orientation を Custom に設定した場合にのみ使用できます。 | |
Rotation | カスタムオリエンテーションの回転を設定します。このオプションは、タイルマップの Orientation を Custom に設定すると有効になります。 | |
Scale | カスタムオリエンテーションのスケールを設定します。このオプションは、タイルマップの Orientation を Custom に設定すると有効になります。 | |
Info | これを展開すると、タイルマップに存在するアセットが表示されます。 | |
Tiles | タイルマップに存在する タイルアセット リストを表示します。 | |
Sprites | タイルマップに存在するスプライトのリストを表示します。 |
Tilemap
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.