Interface IBrushModifierKeyController
An interface that represent the controller for brush modifier keys.
Namespace: UnityEditor.TerrainTools
Assembly: Unity.TerrainTools.Editor.dll
Syntax
public interface IBrushModifierKeyController
Methods
ModifierActive(BrushModifierKey)
Checks if the modifier key is active.
Declaration
bool ModifierActive(BrushModifierKey k)
Parameters
Type | Name | Description |
---|---|---|
BrushModifierKey | k | The modifier key to check. |
Returns
Type | Description |
---|---|
bool | Returns |
OnEnterToolMode()
Defines data when the tool is selected.
Declaration
void OnEnterToolMode()
OnExitToolMode()
Defines data when the tool is deselected.
Declaration
void OnExitToolMode()
Events
OnModifierPressed
Calls the methods in its invocation list when the modifier key is pressed.
Declaration
event Action<BrushModifierKey> OnModifierPressed
Event Type
Type | Description |
---|---|
Action<BrushModifierKey> |
OnModifierReleased
Calls the methods in its invocation list when the modifier key is released.
Declaration
event Action<BrushModifierKey> OnModifierReleased
Event Type
Type | Description |
---|---|
Action<BrushModifierKey> |