Class TintBrush
This Brush changes the color of Tiles placed on a Tilemap.
Inherited Members
UnityEngine.GridBrushBase.Rotate(UnityEngine.GridBrushBase.RotationDirection, UnityEngine.GridLayout.CellLayout)
UnityEngine.GridBrushBase.Flip(UnityEngine.GridBrushBase.FlipAxis, UnityEngine.GridLayout.CellLayout)
UnityEngine.Object.FindObjectsOfType(System.Type, System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType(System.Type, System.Boolean)
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
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. |