Version: 2023.2
언어: 한국어
Customize a scriptable Brush's thumbnail
선택 툴

타일맵에 페인팅하기

The following details the steps and tools for painting Tiles on a Tilemap. However, if you are painting an Isometric Tilemap, refer to Creating a Tile Palette for an Isometric Tilemap for more specific information.

Tile Palette window

To open the Tile Palette window, go Window > 2D > Tile Palette .

2D Tile Palette window
The Tile Palette window.

Selecting the Active Target

To begin painting with Tiles, select the Tilemap you want to paint on from the Active Target dropdown menu in the Tilemap Palette window. Tilemaps created in the Scene’s hierarchy are automatically added to the dropdown menu. Only the currently selected Active Target is affected by the Tile Palette painting tools.

The Active Target highlighted
The Active Target dropdown menu (highlighted).

Hover over an option in the Active Target dropdown menu to reveal toggle options to the left of its name. Refer to the table below for their different functions.

Active Target toggle options.
Active Target toggle options.

옵션 기능
Visible icon Eye Selecting this will toggle the visibility of the target in the Scene View.
Pick icon Ping Selecting this will ping the target in the Hierarchy Window. This will help to identify the target in that window.

Tile Palette toolbar

Paint on the active Tilemap with the painting tools from the Tile Palette toolbar at the top of the Tile Palette window (highlighted below). These tools can also be used to edit and paint on the Tile Palette itself.

Tile Palette toolbar
The Tile Palette toolbar.

Tile Palette tools and shortcuts

The following shows the shortcuts for each Tile Palette painting tool. Select the respective tool for more information about their specific functions.

도구 Shortcut key
Select Tool
Select Tool
S
Move Tool
Move Tool
M
Paintbrush Tool
Paintbrush Tool
B
Box Fill Tool
Box Fill Tool
U
Pick Tool
Pick Tool
I
To temporarily switch to the Pick Tool when using the following Tools:
Paintbrush Tool Ctrl+B (macOS: Cmd+B)
Box Fill Tool Ctrl+U (macOS: Cmd+U)
Eraser Tool
Eraser Tool
D
To temporarily switch to the Eraser Tool when using the following Tools:
Paintbrush Tool Shift+B
Box Fill Tool Shift+U
Flood Fill Tool
Flood Fill Tool
G

Select Tool

Use the Select Tool to select a Tile on the Active Tilemap, or hold and drag it over multiple Tiles to select more at once.

Select Tool highlighted
Selecting the Select Tool.

Selecting a Tile with the Select Tool.
Selecting a Tile on the Tilemap with the Select Tool.

When you select a Tile(s) with the Select Tool, the selected Tile(s)’ property details are shown in the Inspector window in two main property sections - the Grid Selection Properties and the Modify Tilemap properties. Refer to the Select Tool page for more information about these properties.

After selecting Tiles with the Select Tool, you can then use the Move Tool to move selected Tiles to a different position on the Tilemap.

Move Tool

Use the Move Tool to move the Select Tool’s Tile selection. Note that the Move Tool cannot select Tiles by itself. Hold and drag selected Tiles to another position on the Tilemap.

Move Tool highlighted
Selecting the Move Tool.

Moving Tiles with the Move Tile.
Moving Selected Tiles (highlighted in orange) with the Move Tile.

Paintbrush Tool

Use the Paintbrush Tool by first selecting a Tile in the Tilemap Palette, or hold and drag it over multiple Tiles to select more at once. Then click on any location on the Tilemap in the Scene to begin painting with your selected Tiles. Hold Shift while using the Paintbrush Tool to temporarily switch to the Erase Tool.

Paintbrush Tool highlighted
Selecting the Paintbrush Tool.

Painting with the Paintbrush Tool
Selecting a Tile from the Tilemap Palette (right) and painting it onto the Tilemap (left) with the Paintbrush Tool.

To select and paint with Tiles that are already on the Tilemap instead of the Tilemap Palette, hold Ctrl as you select Tiles on the Tilemap with the Paintbrush Tool. This temporarily switches it to the Pick Tool to pick Tiles from the Tilemap directly for painting.

Box Fill Tool

Use the Box Fill Tool by first selecting a Tile in the Tilemap Palette, or hold and drag over multiple Tiles to select more at once. Then hold and drag the Box Fill Tool over the Tilemap to draw a rectangular shape which automatically fills with the selected Tile(s). Selections made with the other tools (such as the Select Tool) can also be used with the Box Fill Tool.

Box Fill Tool highlighted.
Selecting the Box Fill Tool.

Painting with the Box Fill Tool.
Selecting Tiles from the Tilemap Palette (right), then painting with the Box Fill Tool (left) on the Tilemap.

Pick Tool

Use the Pick Tool to pick a Tile from the Tilemap or Tilemap palette, or hold and drag over multiple Tiles to select more at once. The active tool switches to the Paintbrush Tool once a selection is made, to allow you to immediately paint on the Tilemap with the selected Tile(s).

Pick Tool highlighted.
Selecting the Pick Tool.


Selecting Tiles on the Tilemap Palette with the Pick Tool (highlighted in light blue).

Eraser Tool

타일맵의 타일을 삭제하려면 지우개 툴이 활성화된 상태에서 해당 타일을 선택합니다. 보다 넓은 영역을 한 번에 지우려면 지우개 툴을 누른 채 타일맵 팔레트의 해당 면적을 드래그한 후 타일맵에서 삭제할 타일들을 페인팅합니다.

Eraser Tool highlighted.
Selecting the Eraser Tool.


Erase Tiles in the selection.

Flood Fill Tool

Use the Flood Fill Tool by first selecting a Tile from the Tile Palette, then use the tool to fill a contiguous area of empty cells or identical Tiles with the selected Tile. This tool can only be used with a single selected Tile, and cannot be used with a selection with multiple Tiles.


Selecting the Flood Fill Tool.


Select the Tile from the Tile Palette (left) to automatically Flood Fill the four identical Tiles in the middle of the Tilemap (right).

Active Brush inspector


The active Brush inspector window.

The Active Brush Inspector window is found at the bottom of the Tile Palette window and is minimized by default. It allows you to change the current active Brush and its properties. Drag the bottom toolbar upwards to expand it the window.


The Active Brush dropdown menu, with Default Brush selected by default.

Use the dropdown menu to change the active Brush to the different Brushes available in your project, such as custom Scriptable Brushes.

Brush preview and other shortcuts


A preview of the picked Tile is shown at the cursor.

When painting with the active Brush on a Tilemap in the Scene view, a preview of the picked Tile(s) is shown at the cursor location. This is the Brush preview that helps you to visualize the placement of the Tiles before painting. Note that brush previews with multiple Tiles may look different when the cursor hovers over neighboring rows or columns. This is more pronounced on Hexagonal Tilemaps.

다음 단축키를 사용하여 선택한 타일의 방향이나 z축을 변경할 수 있습니다(브러시 미리보기에 시각적으로 반영됨).

단축키 기능
[ 활성 브러시를 시계 방향으로 회전합니다.
] 활성 브러시를 반시계 방향으로 회전합니다.
Shift+[ x축을 따라 활성 브러시를 반전합니다.
Shift+] y축을 따라 활성 브러시를 반전합니다.
-
(Only available when Lock Z Position is disabled)
Increase the z-position of the active Brush. This is only available when Lock Z Position is disabled for the active Brush.
=
(Only available when Lock Z Position is disabled)
Decrease the z-position of the active Brush. This is only available when Lock Z Position is disabled for the active Brush.
Shift+B Switch to the next Brush in the Brush list
Shift+Alt+B Switch to the previous Brush in the Brush list

Tilemap Focus


The Tilemap Focus dropdown menu.

Use the Tilemap Focus mode to focus on a specific Tilemap or Grid GameObject by fading out other GameObjects in the Scene. This is useful when working with multiple Tilemap layers to avoid confusion and clutter. The Tilemap Focus mode will be activated on the current Active Target.

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