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.
Note: 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:
- Select Assets from the menu bar.
- 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.
- 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:
- To open the Tile Palette window, go to Window > 2D > Tile Palette.
- Open the Active Palette dropdown menu in the Tile Palette window. Select a tile palette from the list, or create new palette.
- 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.
- 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.
Additional resources
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。