Class BrushStrengthVariator
Inheritance
System.Object
BrushStrengthVariator
Syntax
public class BrushStrengthVariator : BaseBrushVariator, IBrushTerrainCache, IBrushStrengthController, IBrushController
Constructors
BrushStrengthVariator(String, IBrushEventHandler, IBrushTerrainCache, Single)
Declaration
public BrushStrengthVariator(string toolName, IBrushEventHandler eventHandler, IBrushTerrainCache terrainCache, float defaultValue = 1F)
Parameters
Properties
brushStrength
Declaration
public float brushStrength { get; set; }
Property Value
Type |
Description |
System.Single |
|
Implements
brushStrengthUI
Declaration
public float brushStrengthUI { get; }
Property Value
Type |
Description |
System.Single |
|
isInUse
Declaration
public override bool isInUse { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
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
OnModifierUsingMouseWheel(Event, Terrain, IOnSceneGUI)
Declaration
protected override bool OnModifierUsingMouseWheel(Event mouseEvent, Terrain terrain, IOnSceneGUI editContext)
Parameters
Type |
Name |
Description |
Event |
mouseEvent |
|
Terrain |
terrain |
|
IOnSceneGUI |
editContext |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
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