Version: 2020.1
타일 생성
타일맵에 페인팅하기

Creating a Tile Palette

Place a selection of Tiles onto Tile Palettes so that you can pick Tiles from the Palette to paint on Tilemaps. To create a Tile Palette, open the Tile Palette window by going to Window > 2D > Tile Palette. If you do not have this option, then the 2D Tilemap Editor package may not be installed. If so, download the 2D Tilemap Editor package from the Package Manager.

The Tile Palette window is empty by default. Select the New Palette drop-down menu to open a list of Tile Palettes available in the Project, or for the option to create a new Palette. Select the Create New Palette option to create a new Palette.

Select the Create New Palette option from the drop-down menu.
Select the Create New Palette option from the drop-down menu.

After selecting the option to create anew Palette, the Create New Palette dialog box becomes available. It contains the different property settings and options available when creating a new Palette:

Create New Palette options. Expanded Grid options.

프로퍼티 기능
Name 만든 타일 팔레트 에셋의 이름을 지정합니다.
Grid 만든 타일 팔레트를 사용하여 페인팅할 그리드 레이아웃을 선택합니다.
    Rectangle 기본 정사각형 타일맵을 위한 팔레트를 만들려면 이 옵션을 선택합니다.
    Hexagon 육각형 타일맵을 위한 팔레트를 만들려면 이 옵션을 선택합니다.
    Isometric 아이소메트릭 타일맵을 위한 팔레트를 만들려면 이 옵션을 선택합니다. 자세한 내용은 아이소메트릭 타일맵을 위한 타일 팔레트 만들기를 참조하십시오.
Isometric Z as Y 아이소메트릭 Z as Y(Y에 Z 방향 오프셋 적용) 타일맵을 위한 팔레트를 만들려면 이 옵션을 선택합니다. 자세한 내용은 아이소메트릭 타일맵을 위한 타일 팔레트 만들기를 참조하십시오.
     * Hexagon Type (only available when the Hexagon Grid type is selected) 팔레트를 사용하여 페인팅할 육각형 타일맵 타입을 선택합니다. 자세한 내용은 육각형 타일맵을 참조하십시오.
Cell Size 타일을 페인팅할 셀의 크기입니다.
    Automatic The Cell Size is automatically set in Unity units and based on the size of the Sprite used to create the Tile Assets. If there are multiple Tiles, the Cell Size is adjusted to match the first Tile from the bottom left of the Palette, so that it fits exactly on a cell.
    Manual 커스텀 크기 값을 입력하려면 이 옵션을 선택합니다.

Give the newly create Palette a name and select the desired settings, then select the Create button. Select the folder to save the Palette Asset file into when prompted. The newly created Palette is automatically loaded in the Tile Palette window.

A blank Tile Palette
A blank Tile Palette

Drag and drop Textures or Sprites from the Assets folder onto the Tile Palette, and choose where to save the new Tile Assets when prompted. New Tile Assets are generated in the selected save location, and the Tiles are placed on the grid of the active Tile Palette window.

Use the following shortcuts and actions to navigate the Palette window and began picking Tiles to paint on the Tilemap in the Editor window.

Shortcut/Action 기능
Click on a Tile 타일 선택
Select and drag the mouse over multiple Tiles 여러 개의 타일 선택
Alt + Left button and drag 이동
Click the wheel button and drag 이동
Rotate the wheel button 확대/축소

활성 브러시 인스펙터

The Active Brush inspector is at the bottom of the Tile Palette window. You can use it to change the current active Brush and its properties. This is minimized by default. To expand it, drag the bottom toolbar upwards.

Brush drop-down menu highlighted.
Brush drop-down menu highlighted.

Use the ‘Brush’ drop-down menu to change the active Brush from the ‘Default Brush’ to other Brushes, such as Scriptable Brushes.

프로퍼티 기능
Script Displays the currently assigned script Asset that provides a fixed set of APIs for Tilemap painting. The default is the GridBrush. Users may use or create their own Scriptable Brushes which become available from the drop-down menu. The Script property updates to reflect the current active Brush.
Can Change Z Position Enable this property to change the z-position of the active Brush. Disable to prevent any changes to the current z-position of the active Brush.
Z Position Only available when Can Change Z Position is enabled. Enter the desired z-axis value (only whole numbers) for this Brush when painting Tiles, which also adjusts the relative heights of Tiles on a Z as Y Isometric Tilemap . Refer to Adjusting the Tile height in the Palette for more information.

타일 팔레트 편집

The tools for picking and painting with Tiles can also be used to edit the Tile Palette directly, allowing you to move and manipulate the Tiles currently placed on the Tile Palette. Select the Palette you want to edit from the ‘Palette’ drop-down menu, then click Edit to unlock the Palette for editing.

Refer to the documentation on Painting on Tilemaps for the shortcuts and functions of the Palette tools which are available for editing the Palette as well.

Creating Palette Assets from existing Grid Prefabs

You can convert an existing Prefab to a Palette Asset, so that you can use it in the Tile Palette window. To do this, the Prefab must not already be a Palette Asset, and it must have a Grid component on its topmost GameObject.

The Tile Palette toolbar
The Tile Palette toolbar

To convert a Prefab, drag and drop it onto the Tile Palette toolbar (highlighted in the image above). The Editor automatically converts it to a Palette Asset, and adds a Grid Palette Asset. The new Palette Asset has the same name as its source, and you can select it from the Palette drop-down menu.

Tile Palette Gizmos

The Tile Palette can display icons (Gizmos) over the current Palette Asset, to help you visualize specific criteria. For example, you can add a Gizmo that displays a special icon for Tiles that contain no Sprites.

To display the default Unity and the Palette Asset’s Gizmos on the Tile Palette, enable the Gizmos toggle (highlighted in the image above). The Tile Palette immediately displays any component with MonoBehaviour.OnDrawGizmos() in the Palette Asset.

To add a component with DrawGizmo to the Palette Asset:

  1. Select the Palette Asset in the Project window.

  2. Open the Palette Asset in Prefab Mode.

  3. Add the component while in Prefab Mode.

  4. Save the Asset while in Prefab Mode.

  5. Exit Prefab Mode.

  • Page content and screenshots updated for 2020.1 NewIn20201
  • 2017.2에서 타일맵 추가됨NewIn20172
타일 생성
타일맵에 페인팅하기