Class BrushRotationVariator
Inheritance
System.Object
BrushRotationVariator
Syntax
public class BrushRotationVariator : BaseBrushVariator, IBrushTerrainCache, IBrushRotationController, IBrushController
Constructors
BrushRotationVariator(String, IBrushEventHandler, IBrushTerrainCache, Boolean)
Declaration
public BrushRotationVariator(string toolName, IBrushEventHandler eventHandler, IBrushTerrainCache terrainCache, bool smoothJitter = false)
Parameters
Properties
brushRotation
Declaration
public float brushRotation { get; set; }
Property Value
Type |
Description |
System.Single |
|
Implements
currentRotation
Declaration
public float currentRotation { get; }
Property Value
Type |
Description |
System.Single |
|
Implements
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
GetMouseFollowAngle(RaycastHit)
Declaration
public float GetMouseFollowAngle(RaycastHit hit)
Parameters
Type |
Name |
Description |
RaycastHit |
hit |
|
Returns
Type |
Description |
System.Single |
|
OnBeginModifier()
Declaration
protected override bool OnBeginModifier()
Returns
Type |
Description |
System.Boolean |
|
Overrides
OnEndModifier()
Declaration
protected override bool OnEndModifier()
Returns
Type |
Description |
System.Boolean |
|
Overrides
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
OnModifierUsingMouseMove(Event, Terrain, IOnSceneGUI)
Declaration
protected override bool OnModifierUsingMouseMove(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