docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GridBrush.BrushCell

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

    Inheritance
    object
    GridBrush.BrushCell
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Tilemaps
    Assembly: Unity.2D.Tilemap.Editor.dll
    Syntax
    [Serializable]
    public class GridBrush.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
    int

    A HashCode for the BrushCell based on its contents.

    Overrides
    object.GetHashCode()
    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)