Interface IBrushController
An interface that represents a brush's controller.
Namespace: UnityEditor .TerrainTools
Assembly: Unity.TerrainTools.Editor.dll
Syntax
public interface IBrushController
Remarks
This interface is used for implementing custom controllers for handling brush properties.
Properties
isInUse
Determines if the brush controller is in use.
Declaration
bool isInUse { get; }
Property Value
Type | Description |
---|---|
bool |
See Also
Methods
AppendBrushInfo(Terrain, IOnSceneGUI, StringBuilder)
Adds basic information to the selected brush.
Declaration
void AppendBrushInfo(Terrain terrain, IOnSceneGUI editContext, StringBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
Terrain | terrain | The Terrain in focus. |
IOn |
editContext | The Unity |
String |
builder | The String |
See Also
OnEnterToolMode(BrushShortcutHandler<BrushShortcutType>)
Defines data when the brush is selected.
Declaration
void OnEnterToolMode(BrushShortcutHandler<BrushShortcutType> shortcutHandler)
Parameters
Type | Name | Description |
---|---|---|
Brush |
shortcutHandler | The shortcut handler used to add and refernce shortcuts. |
See Also
OnExitToolMode(BrushShortcutHandler<BrushShortcutType>)
Defines data when the brush is deselected.
Declaration
void OnExitToolMode(BrushShortcutHandler<BrushShortcutType> shortcutHandler)
Parameters
Type | Name | Description |
---|---|---|
Brush |
shortcutHandler | The shortcut handler used to add and refernce shortcuts. |
See Also
OnInspectorGUI(Terrain, IOnInspectorGUI)
Triggers events to render objects and displays within Scene view.
Declaration
void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext)
Parameters
Type | Name | Description |
---|---|---|
Terrain | terrain | The terrain in focus. |
IOn |
editContext | The editcontext to reference. |
See Also
OnPaint(Terrain, IOnPaint)
Triggers events when painting on a terrain.
Declaration
bool OnPaint(Terrain terrain, IOnPaint editContext)
Parameters
Type | Name | Description |
---|---|---|
Terrain | terrain | The Terrain in focus. |
IOn |
editContext | The editcontext to reference. |
Returns
Type | Description |
---|---|
bool | Returns |
See Also
OnSceneGUI(Event, int, Terrain, IOnSceneGUI)
Triggers events to render objects and displays within Scene view.
Declaration
void OnSceneGUI(Event currentEvent, int controlId, Terrain terrain, IOnSceneGUI editContext)
Parameters
Type | Name | Description |
---|---|---|
Event | currentEvent | The event state within the OnSceneGUI call. |
int | controlId | The control identification of the OnSceneGUI |
Terrain | terrain | The terrain in focus. |
IOn |
editContext | The editcontext to reference. |