Version: 2022.1
言語: 日本語
Tilemap Renderer
Tile Palette Preferences

タイルアセット

Tiles are Assets that are arranged on Tilemaps to construct a 2D environment. Each Tile references a selected Sprite, which is then rendered at the Tile’s location on the Tilemap Grid. Refer to the Creating Tiles documentation for information about preparing and importing Sprites for your Tiles, and the different methods for creating the Assets in the Editor.

タイルアセットアイコン
タイルアセットアイコン

アセットプロパティ

Inspector ウィンドウ
Inspector ウィンドウ
プロパティ 機能
Preview 選択したタイルの外観のプレビューを表示します。
Sprite このタイルにレンダリングされるスプライトを選択します。右側の円のアイコンをクリックするとオブジェクトピッカーウィンドウが開きます。使用可能なスプライトアセットを選ぶか、スプライトを直接このボックスにドラッグします。
Color このタイルに配置されたスプライトに選択した色を適用します。白に設定すると、タイルは無色で描画されます。
Collider Type タイル用に生成されるコライダーの形状を定義します。
    None コライダーを生成しません。
    Sprite コライダーの形状は、選択した スプライト の輪郭に基づいて生成されます。
    Grid The Collider shape is based on a cell of the Tilemap. The shape of a cell depends on the Cell Layout of the Tilemap.

コライダー生成への Collider Type の影響

Tile Asset のプロパティで設定されている Collider Type は、タイルマップの各タイルのためのコライダー形状の生成に影響を与えます。コンポーネントの形状を生成する動作は、 Collider Type に以下のように対応しています。

Collider Type 機能
None Tilemap Collider 2D (2D タイルマップコライダー) コンポーネントは、このタイルのコライダー形状を生成しません。
Sprite The Tilemap Collider 2D component generates a Collider shape based on the Sprite assigned to the Tile. The Collider shape is based on the Custom Physics Shape set for the Sprite.
Grid Tilemap Collider 2D コンポーネントは、グリッドセルの形状に基づいたコライダー形状を作成します。グリッドセルは、Grid コンポーネントの Cell Layout で選択されたセルレイアウトによって決定されます。

  • 2020.1 にページコンテンツとスクリーンショットを更新NewIn20201
  • タイルマップは 2017.2 で追加NewIn20172
Tilemap Renderer
Tile Palette Preferences
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961