Class LineBrushEditor
The Brush Editor for a Line Brush.
Inheritance
Inherited Members
Namespace: UnityEditor .Tilemaps
Assembly: Unity.2D.Tilemap.Extras.Editor.dll
Syntax
[CustomEditor(typeof(LineBrush))]
public class LineBrushEditor : GridBrushEditor
Methods
ClearPreview()
Clears all line previews.
Declaration
public override void ClearPreview()
Overrides
OnPaintSceneGUI(GridLayout, GameObject, BoundsInt, Tool, bool)
Callback for painting the GUI for the GridBrush in the Scene View. The CoordinateBrush Editor overrides this to draw the preview of the brush when drawing lines.
Declaration
public override void OnPaintSceneGUI(GridLayout grid, GameObject brushTarget, BoundsInt position, GridBrushBase.Tool tool, bool executing)
Parameters
Type | Name | Description |
---|---|---|
Grid |
grid | Grid that the brush is being used on. |
Game |
brushTarget | Target of the GridBrushBase::ref::Tool operation. By default the currently selected GameObject. |
Bounds |
position | Current selected location of the brush. |
Grid |
tool | Current GridBrushBase::ref::Tool selected. |
bool | executing | Whether brush is being used. |