Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Create a tile palette

Create an empty tile palette and add sprites to it manually.
Read time 2 minutesLast updated 19 days ago

Create an empty tile palette, then manually drag sprites into it to create tiles.
Follow these steps:
  1. Make sure the 2D Sprite package is installed in your project. For more information, refer to set up your project for 2D games.
  2. From the main menu, select Assets > Create > 2D > Tile Palette.
  3. Select a tilemap type, which determines the shape of the tiles in the tile palette. The default tilemap type is Rectangular.
Unity creates the following in the Project window:
  • A tile palette asset with the name you specified.
  • A child asset that contains the settings for the palette.
You can also create a tile palette using the Tile Palette window. For more information, refer to Tile Palette window reference.

Add tiles to a tile palette

Follow these steps:
  1. From the main menu, select Window > 2D > Tile Palette to open the Tile Palette window.
    If you have multiple tile palettes, set Active Palette () to the tile palette you want to add tiles to.
  2. Drag a sprite asset () or a texture from the Project window to the Tile Palette window.
    If you drag a texture with a Sprite Mode of Multiple, Unity creates a tile for each child sprite. For more information, refer to Import a sprite or spritesheet.
  3. Unity converts the sprite to a tile asset (). In the folder dialog that appears, select a location to save the converted tile asset.
The sprite now appears as a tile in the Project window and the Tile Palette window.
Note
The tile asset isn't connected to the source sprite or texture. If you update the source sprite or texture, the tile palette doesn't change.

Additional resources