Class GameObjectBrushEditor
The Brush Editor for a GameObject Brush.
Namespace: UnityEditor.Tilemaps
Syntax
public class GameObjectBrushEditor : GridBrushEditorBase
Properties
brush
The GameObjectBrush for this Editor
Declaration
public GameObjectBrush brush { get; }
Property Value
| Type | Description |
|---|---|
| GameObjectBrush |
validTargets
The targets that the GameObjectBrush can paint on
Declaration
public override GameObject[] validTargets { get; }
Property Value
| Type | Description |
|---|---|
| GameObject[] |
Methods
OnPaintInspectorGUI()
Callback for painting the inspector GUI for the GameObjectBrush in the tilemap palette. The GameObjectBrush Editor overrides this to show the usage of this Brush.
Declaration
public override void OnPaintInspectorGUI()
OnPaintSceneGUI(GridLayout, GameObject, BoundsInt, GridBrushBase.Tool, Boolean)
Callback for painting the GUI for the GridBrush in the Scene View. The GameObjectBrush Editor overrides this to draw the preview of the brush when drawing lines.
Declaration
public override void OnPaintSceneGUI(GridLayout gridLayout, GameObject brushTarget, BoundsInt position, GridBrushBase.Tool tool, bool executing)
Parameters
| Type | Name | Description |
|---|---|---|
| GridLayout | gridLayout | Grid that the brush is being used on. |
| GameObject | brushTarget | Target of the GameObjectBrush::ref::Tool operation. By default the currently selected GameObject. |
| BoundsInt | position | Current selected location of the brush. |
| GridBrushBase.Tool | tool | Current GameObjectBrush::ref::Tool selected. |
| Boolean | executing | Whether brush is being used. |