docs.unity.cn
    Show / Hide Table of Contents

    Class GridBrush.BrushCell

    Brush Cell stores the data to be painted in a grid cell.

    Inheritance
    Object
    GridBrush.BrushCell
    Namespace: UnityEditor.Tilemaps
    Syntax
    [Serializable]
    public class BrushCell

    Properties

    color

    Color to tint the tile when painting.

    Declaration
    public Color color { get; set; }
    Property Value
    Type Description
    Color

    matrix

    The transform matrix of the brush cell.

    Declaration
    public Matrix4x4 matrix { get; set; }
    Property Value
    Type Description
    Matrix4x4

    tile

    Tile to be placed when painting.

    Declaration
    public TileBase tile { get; set; }
    Property Value
    Type Description
    TileBase

    Methods

    GetHashCode()

    Returns a HashCode for the BrushCell based on its contents.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A HashCode for the BrushCell based on its contents.

    Overrides
    Object.GetHashCode()
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 08 April 2022
    Terms of use