Version: 2022.3
言語: 日本語
Tilemap Renderer
タイルパレットの環境設定

Tile asset reference

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 Creating Tiles for more 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 The Collider shape is generated based on the selected Sprite’s outline.
    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.

コライダー生成に関するコライダータイプの影響

The Collider Type set in the Tile Asset’s properties affects the generation of Collider shapes for each Tile in the Tilemap. The component’s shape generation behavior corresponds to the Collider Types in the following ways:

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
タイルパレットの環境設定
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961