TerrainBrushUseBehavior
Package: Libraries.Interface.Behaviors.Scenes.Selection · Inherits from: Libraries.Language.Object, Libraries.Interface.Behaviors.Behavior
The TerrainBrushUseBehavior starts a stroke with a selected terrain's brush, when its tool is chosen. The stroke goes on while the key is held, and ends when it is let go. Space by default.
Actions
GetKey()
Returns the key this behavior is bound to.
Returns
integer: The key's code
Run(Libraries.Interface.Events.BehaviorEvent event)
Returns the key this behavior is bound to.
Parameters
SetKey(integer key)
Sets the key this behavior is bound to, so the stroke can tell when it is let go.
Parameters
keyinteger: The key's code