Class BrushSpacingVariator
Inheritance
System.Object
BrushSpacingVariator
Syntax
public class BrushSpacingVariator : BaseBrushVariator, IBrushTerrainCache, IBrushSpacingController, IBrushController
Constructors
BrushSpacingVariator(String, IBrushEventHandler, IBrushTerrainCache)
Declaration
public BrushSpacingVariator(string toolName, IBrushEventHandler eventHandler, IBrushTerrainCache terrainCache)
Parameters
Properties
allowPaint
Declaration
public bool allowPaint { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Implements
brushSpacing
Declaration
public float brushSpacing { get; }
Property Value
Type |
Description |
System.Single |
|
Implements
Methods
AppendBrushInfo(Terrain, IOnSceneGUI, StringBuilder)
Declaration
public override void AppendBrushInfo(Terrain terrain, IOnSceneGUI editContext, StringBuilder builder)
Parameters
Type |
Name |
Description |
Terrain |
terrain |
|
IOnSceneGUI |
editContext |
|
System.Text.StringBuilder |
builder |
|
Overrides
Implements
Declaration
public override void OnEnterToolMode(BrushShortcutHandler<BrushShortcutType> shortcutHandler)
Parameters
Overrides
Implements
Declaration
public override void OnExitToolMode(BrushShortcutHandler<BrushShortcutType> shortcutHandler)
Parameters
Overrides
Implements
OnInspectorGUI(Terrain, IOnInspectorGUI)
Declaration
public override void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext)
Parameters
Type |
Name |
Description |
Terrain |
terrain |
|
IOnInspectorGUI |
editContext |
|
Overrides
Implements
OnPaint(Terrain, IOnPaint)
Declaration
public override bool OnPaint(Terrain terrain, IOnPaint editContext)
Parameters
Type |
Name |
Description |
Terrain |
terrain |
|
IOnPaint |
editContext |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Implements
OnSceneGUI(Event, Int32, Terrain, IOnSceneGUI)
Declaration
public override void OnSceneGUI(Event currentEvent, int controlId, Terrain terrain, IOnSceneGUI editContext)
Parameters
Type |
Name |
Description |
Event |
currentEvent |
|
System.Int32 |
controlId |
|
Terrain |
terrain |
|
IOnSceneGUI |
editContext |
|
Overrides
Implements