docs.unity.cn
    Show / Hide Table of Contents

    Group Brush

    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 © 2020 Unity Technologies
    Generated by DocFX
    on 29 March 2021