Version: Unity 6 (6000.0)
Language : English
Fill an area with the Box Fill tool
Create Brush Picks from tiles with the Pick tool

Fill an area with the Flood Fill tool

Use the Flood Fill tool to fill a contiguous area of empty cells or identical tiles with a selected tile.

  1. Select the Flood Fill tool from the toolbarA row of buttons and basic controls at the top of the Unity Editor that allows you to interact with the Editor in various ways (e.g. scaling, translation). More info
    See in Glossary
    , or press its shortcut key G.

  2. Select a tile from the Tile Palette window.

At this point, you have two options depending on what you want to do:

To fill contiguous empty cells

  • Click on an empty cell on the tilemapA GameObject that allows you to quickly create 2D levels using tiles and a grid overlay. More info
    See in Glossary
    with the Flood Fill tool to fill all contiguous cells with the selected tile from Step 2.

To only fill identical contiguous cells

  • To only fill identical contiguous cells, click on a cell that already has a tile with the Flood Fill tool. The tool replaces the tile of all contiguous cells with the selected tile from Step 2.

Additional resources

Fill an area with the Box Fill tool
Create Brush Picks from tiles with the Pick tool
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961