Class BrushScatterVariator
Inheritance
System.Object
BrushScatterVariator
Syntax
public class BrushScatterVariator : BaseBrushVariator, IBrushTerrainCache, IBrushScatterController, IBrushController
Constructors
BrushScatterVariator(String, IBrushEventHandler, IBrushTerrainCache)
Declaration
public BrushScatterVariator(string toolName, IBrushEventHandler eventHandler, IBrushTerrainCache terrainCache)
Parameters
Properties
brushScatter
Declaration
public float brushScatter { 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
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
RequestRandomisation()
Declaration
public void RequestRandomisation()
Implements
ScatterBrushStamp(Vector2, Single)
Declaration
public Vector2 ScatterBrushStamp(Vector2 uv, float brushSize)
Parameters
Type |
Name |
Description |
Vector2 |
uv |
|
System.Single |
brushSize |
|
Returns
Implements