Skip to main content
The LavaPool class controls a liquid pool (lava, water, etc.) in the level. The pool can operate in several modes — disabled, static, auto-adjusting, or tide — and exposes parameters for height, velocity, amplitude, and frequency. You access the pool via Level.lavaPool during gameplay.
Related type: The editor-side configuration is handled by PoolData. The mode enum is PoolMode.

Properties

AutoAdjust Parameters

These properties are used when mode is PoolMode.AutoAdjust:

Tide Parameters

These properties are used when mode is PoolMode.Tide:

Usage Example

Configure a rising tide effect when the player enters a danger zone:
Set the pool to auto-adjust toward a specific height: