docs.unity3d.com
    Show / Hide Table of Contents

    Class TintBrushSmooth

    Advanced tint brush for interpolated tint color per-cell. Requires the use of custom shader (see TintedTilemap.shader) and helper component TileTextureGenerator.

    Inheritance
    Object
    Object
    ScriptableObject
    GridBrushBase
    TintBrushSmooth
    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.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(false, false, false, "Tint Brush (Smooth)")]
    public class TintBrushSmooth : GridBrushBase

    Fields

    m_Blend

    Factor to blend the Color of Tile with its color and this Brush's color

    Declaration
    public float m_Blend
    Field Value
    Type Description
    Single

    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 TintBrushSmooth overrides this to set the color of the Grid position 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 TintBrushSmooth overrides this to set the color of the Grid position 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)

    Pick(GridLayout, GameObject, BoundsInt, Vector3Int)

    Picks the tint color given the coordinates of the cells. The TintBrushSmoot overrides this to provide color picking functionality.

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

    Grid to pick data from.

    GameObject brushTarget

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

    BoundsInt position

    The coordinates of the cells to paint data from.

    Vector3Int pivot

    Pivot of the picking brush.

    Overrides
    GridBrushBase.Pick(GridLayout, GameObject, BoundsInt, 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