docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Group Brush Group Brush Icon

    This Brush picks Tiles which are grouped together according to their position and its set properties. Set the Gap value to identify which Tiles belong to the group, and set the Limit value to ensure that the picked group remains within the desired size. Use this Brush as an example to create your own Brushes that can choose and pick specific Tiles

    Properties

    Property Function
    Gap This value represents the minimum number of cells that must be in between picked Tiles. Only Tiles that are at least this many cells apart are picked by the Brush and placed in the group. Set this value to 0 to pick up all Tiles that are directly adjacent to each other in the group.
    Limit This value represents the maximum number of cells around the initial picked position. Only Tiles within this range of cells are picked by the Brush and placed in the group.

    Usage

    Select the Group Brush, and use the Picker Tool and pick a position on the Tilemap. The Group Brush selects a group of Tiles based on its set properties and creates a Group.

    Scene View with Group Brush

    Implementation

    The Group Brush inherits from the Grid Brush. It overrides the Pick method when picking a group of Tiles based on their position and its set properties.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)