Class RandomBrushEditor
The Brush Editor for a Random Brush.
Inheritance
Inherited Members
Namespace: UnityEditor .Tilemaps
Assembly: Unity.2D.Tilemap.Extras.Editor.dll
Syntax
[CustomEditor(typeof(RandomBrush))]
public class RandomBrushEditor : GridBrushEditor
Methods
ClearPreview()
Clears all RandomTileSet previews.
Declaration
public override void ClearPreview()
Overrides
OnPaintInspectorGUI()
Callback for painting the inspector GUI for the RandomBrush in the Tile Palette. The RandomBrush Editor overrides this to have a custom inspector for this Brush.
Declaration
public override void OnPaintInspectorGUI()
Overrides
PaintPreview(GridLayout, GameObject, Vector3Int)
Paints preview data into a cell of a grid given the coordinates of the cell. The RandomBrush Editor overrides this to draw the preview of the brush for RandomTileSets
Declaration
public override void PaintPreview(GridLayout grid, GameObject brushTarget, Vector3Int position)
Parameters
Type | Name | Description |
---|---|---|
Grid |
grid | Grid to paint data to. |
Game |
brushTarget | Target of the paint operation. By default the currently selected GameObject. |
Vector3Int | position | The coordinates of the cell to paint data to. |