Class SelectionToolBase
This is the base class for any tool that functions on the basis of a terrain selection. Inherit from this class to implement your own custom tools.
Inheritance
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
SelectionToolBase
Inherited Members
Namespace: TycoonTerrain.Tools
Assembly: TycoonTerrainAssembly.dll
Syntax
public abstract class SelectionToolBase : ToolBase
Fields
Selection
The terrain selection.
Declaration
public TerrainSelection Selection
Field Value
Type | Description |
---|---|
Terrain |
The terrain selection. |
SelectionChangedEvent
The terrain selection changed event.
Declaration
public TerrainSelectionEvent SelectionChangedEvent
Field Value
Type | Description |
---|---|
Terrain |
The terrain selection changed event. |
Methods
OnDisable()
Unity OnDisable event.
Declaration
protected override void OnDisable()
Overrides
OnEnable()
Unity OnEnable event.
Declaration
protected override void OnEnable()
Overrides
OnSelectionChanged(TerrainSelection)
Event that is called when the terrain selection changes.
Declaration
protected virtual void OnSelectionChanged(TerrainSelection selection)
Parameters
Type | Name | Description |
---|---|---|
Terrain |
selection | The new terrain selection. |