docs.unity3d.com
    Show / Hide Table of Contents

    Class TintBrush

    This Brush changes the color of Tiles placed on a Tilemap.

    Inheritance
    Object
    Object
    ScriptableObject
    GridBrushBase
    TintBrush
    Inherited Members
    GridBrushBase.BoxFill(GridLayout, GameObject, BoundsInt)
    GridBrushBase.BoxErase(GridLayout, GameObject, BoundsInt)
    GridBrushBase.Select(GridLayout, GameObject, BoundsInt)
    GridBrushBase.FloodFill(GridLayout, GameObject, Vector3Int)
    UnityEngine.GridBrushBase.Rotate(UnityEngine.GridBrushBase.RotationDirection, UnityEngine.GridLayout.CellLayout)
    UnityEngine.GridBrushBase.Flip(UnityEngine.GridBrushBase.FlipAxis, UnityEngine.GridLayout.CellLayout)
    GridBrushBase.Pick(GridLayout, GameObject, BoundsInt, Vector3Int)
    GridBrushBase.Move(GridLayout, GameObject, BoundsInt, BoundsInt)
    GridBrushBase.MoveStart(GridLayout, GameObject, BoundsInt)
    GridBrushBase.MoveEnd(GridLayout, GameObject, BoundsInt)
    GridBrushBase.ChangeZPosition(Int32)
    GridBrushBase.ResetZPosition()
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    UnityEngine.Object.FindObjectsOfType(System.Type, System.Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    UnityEngine.Object.FindObjectOfType(System.Type, System.Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: UnityEditor.Tilemaps
    Syntax
    [CustomGridBrush(true, false, false, "Tint Brush")]
    public class TintBrush : GridBrushBase

    Fields

    m_Color

    Color of the Tile to tint

    Declaration
    public Color m_Color
    Field Value
    Type Description
    Color

    Methods

    Erase(GridLayout, GameObject, Vector3Int)

    Resets the color of the tiles in a given position within the selected layers to White. The TintBrush overrides this to set the color of the Tile to White.

    Declaration
    public override void Erase(GridLayout grid, GameObject brushTarget, Vector3Int position)
    Parameters
    Type Name Description
    GridLayout grid

    Grid used for layout.

    GameObject brushTarget

    Target of the erase operation. By default the currently selected GameObject.

    Vector3Int position

    The coordinates of the cell to erase data from.

    Overrides
    GridBrushBase.Erase(GridLayout, GameObject, Vector3Int)

    Paint(GridLayout, GameObject, Vector3Int)

    Tints tiles into a given position within the selected layers. The TintBrush overrides this to set the color of the Tile to tint it.

    Declaration
    public override void Paint(GridLayout grid, GameObject brushTarget, Vector3Int position)
    Parameters
    Type Name Description
    GridLayout grid

    Grid used for layout.

    GameObject brushTarget

    Target of the paint operation. By default the currently selected GameObject.

    Vector3Int position

    The coordinates of the cell to paint data to.

    Overrides
    GridBrushBase.Paint(GridLayout, GameObject, Vector3Int)
    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