テクスチャを Assets フォルダーに置くことで、アイソメトリックタイルマップの個々のタイルやタイルシートの画像を Unity プロジェクトに インポート します。インポートした画像を選択すると、テクスチャインポーター 設定が Inspector ウィンドウに表示されます。
アイソメトリックタイルマップで使用するためのスプライトをインポートするときは、以下の推奨する設定を使用してください。各設定の詳細は、Texture Type: Sprite (2D and UI) を参照してください。
以下の例では、インポートされたスプライトは 256x128 の画像であり、アイソメトリックタイルマップは Unity ユニット (XYZ: 1、0.5、1) の Cell Size を持ちます。スプライトをタイルマップの 1 つのセルに正確に当てはめるには、その PPU 値 (1 ユニットのピクセル数) を 256 に設定します。その全体の幅は 1 Unity ユニットに当たり、1 つのセルの幅 (X 値: 1) と等しくなります。
If the Sprite is set to a PPU value of 128, then it becomes 2 (256px/128) Unity units in width. This causes the Sprite to visually appear to cover 2 Cells in width when painted on the Tilemap. However, the original Cell position of the Tile remains unchanged.
After the Sprites are imported, refine the outlines of the Sprites by opening the Sprite Editor for each of them and editing their outlines. For Sprites in an Isometric Tilemap, you should set the Pivot of the Sprite so that the ‘ground’ is relative to the Sprite.
テクスチャを Sprite Mode を Multiple に設定してインポートし、複数のスプライトを含む場合は、スプライトエディターで各スプライトの輪郭を編集します。