Version: Unity 6 Beta (6000.0)
Language : English
Create Tilemaps
Create a Tile Palette

Create tile assets

This page describes how to create tile assets in Unity. You can create a tile asset directly from the Unity Editor’s Assets menu, or have Unity automatically generate tile assets when you drag spritesA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
See in Glossary
onto a tile palette.

Refer to the specific tasks for either method:

Prerequisites

You must install the 2D Tilemap Editor package to have the option to create tile assets in the Assets menu. Install the 2D Tilemap Extras for additional types of tile assets. These packages are part of the 2D feature set and are automatically installed if you select the 2D option when creating a new project.

Create tile assets from the Asset menu

To create empty tile assets in the Unity Editor:

  1. Select Assets from the menu bar.
  2. Go to Create > 2D > Tiles to see the list of available tile types. If you don’t see any options, check that you have completed the prerequisites.
  3. Select a type of tile asset from the available options. Unity creates the asset in the current folder in the Project window.

Automatically generate tile assets in the Tile Palette window

To automatically generate tile assets in the Tile Palette window:

  1. To open the Tile Palette window, go to Window > 2D > Tile Palette.
  2. Open the Active Palette dropdown menu in the Tile Palette window. Select a tile palette from the list, or create new palette.
  3. After creating or loading a tile palette, click and drag textures or sprites from the Assets folder directly onto the Tile Palette window. The editor will prompt you to choose a save location for new tile assets.
  4. Select a folder as your save location, and the editor will generate new tile assets based on the imported textures or sprites, in the selected folder. The generated tiles are also automatically placed onto the palette.

Delete tile assets

When you delete tile assets in their save location, the Tile Palette editor replaces them with placeholder tiles in the tile palette and Tilemaps. Each deleted tile asset has a corresponding placeholder tile with a unique shade of pink that differentiates the placeholders from each other. On the tilemapA GameObject that allows you to quickly create 2D levels using tiles and a grid overlay. More info
See in Glossary
, these placeholder tiles remain in the original position of the deleted tiles. This helps you to identify the deleted tile assets and the areas on the tilemaps they affect.

A tile palette with orange, black, and white tiles.
A tile palette with orange, black, and white tiles.
The same tile palette after the orange and white tile assets are deleted.
The same tile palette after the orange and white tile assets are deleted.

Additional resources

Create Tilemaps
Create a Tile Palette
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961