Class CoordinateBrushEditor
The Brush Editor for a Coordinate Brush.
Inheritance
Inherited Members
Namespace: UnityEditor.Tilemaps
Syntax
[CustomEditor(typeof(CoordinateBrush))]
public class CoordinateBrushEditor : GridBrushEditor, IPreviewable, IToolModeOwner
Methods
OnPaintSceneGUI(GridLayout, GameObject, BoundsInt, GridBrushBase.Tool, Boolean)
Callback for painting the GUI for the GridBrush in the Scene View. The CoordinateBrush Editor overrides this to draw the current coordinates of the brush.
Declaration
public override void OnPaintSceneGUI(GridLayout grid, GameObject brushTarget, BoundsInt position, GridBrushBase.Tool tool, bool executing)
Parameters
Type | Name | Description |
---|---|---|
GridLayout | grid | |
GameObject | brushTarget | Target of the GridBrushBase::ref::Tool operation. By default the currently selected GameObject. |
BoundsInt | position | Current selected location of the brush. |
GridBrushBase.Tool | tool | Current GridBrushBase::ref::Tool selected. |
Boolean | executing | Whether brush is being used. |