Interface IBrushSmoothController
An interface that represent the controller for smoothing the brush.
Namespace: UnityEditor.TerrainTools
Syntax
public interface IBrushSmoothController
Properties
active
Checks if the smooth controller is active.
Declaration
bool active { get; }
Property Value
Type | Description |
---|---|
Boolean |
kernelSize
Gets and sets the smooth kernel size.
Declaration
int kernelSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
OnEnterToolMode()
Defines data when the brush is selected.
Declaration
void OnEnterToolMode()
OnExitToolMode()
Defines data when the brush is deselected.
Declaration
void OnExitToolMode()
OnInspectorGUI(Terrain, IOnInspectorGUI)
Declaration
void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Terrain | terrain | The terrain in focus. |
UnityEditor.TerrainTools.IOnInspectorGUI | editContext | The editcontext to reference. |
OnPaint(Terrain, IOnPaint, Single, Single, Single, Vector2)
Triggers events when painting on a terrain.
Declaration
bool OnPaint(Terrain terrain, IOnPaint editContext, float brushSize, float brushRotation, float brushStrength, Vector2 uv)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Terrain | terrain | The terrain in focus. |
UnityEditor.TerrainTools.IOnPaint | editContext | The editcontext to reference. |
Single | brushSize | The brush's size. |
Single | brushRotation | The brush's rotation. |
Single | brushStrength | The brush's strength. |
UnityEngine.Vector2 | uv | The brush's UV. |
Returns
Type | Description |
---|---|
Boolean | Returns |
OnSceneGUI(Terrain, IOnSceneGUI)
Triggers events to render objects and displays within Scene view.
Declaration
void OnSceneGUI(Terrain terrain, IOnSceneGUI editContext)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Terrain | terrain | The terrain in focus. |
UnityEditor.TerrainTools.IOnSceneGUI | editContext | The editcontext to reference. |