Class WaterTool
The water tool is used to create, modify and delete water bodies on the terrain.
Inheritance
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
WaterTool
Inherited Members
Namespace: TycoonTerrain.Tools
Assembly: TycoonTerrainAssembly.dll
Syntax
public class WaterTool : ToolBase
Fields
OnWaterPlacedEvent
Declaration
[Tooltip("This event is fired every time a water water is created, modified or deleted.")]
public UnityEvent OnWaterPlacedEvent
Field Value
Type | Description |
---|---|
Unity |
SelectedWaterHeight
Declaration
[NonSerialized]
public float SelectedWaterHeight
Field Value
Type | Description |
---|---|
Single |
SelectedWaterHeightIsValid
Declaration
[NonSerialized]
public bool SelectedWaterHeightIsValid
Field Value
Type | Description |
---|---|
Boolean |
SelectedWaterNormal
Declaration
[NonSerialized]
public Vector3 SelectedWaterNormal
Field Value
Type | Description |
---|---|
Unity |
SelectedWaterPosition
Declaration
[NonSerialized]
public Vector3 SelectedWaterPosition
Field Value
Type | Description |
---|---|
Unity |
Methods
OnDisable()
Declaration
protected override void OnDisable()
Overrides
OnEnable()
Declaration
protected override void OnEnable()