docs.unity3d.com
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023