Skip to content

Liquid Volume

Lakatrazz edited this page Dec 19, 2024 · 1 revision

Liquid Volumes define an area with a certain buoyancy.

You can change them with the following properties:

  • Density
    • The density of the liquid. Defaults to 1000 kg/m^3, the density of water.
  • Center
    • The center of the liquid, relative to the object.
  • Size
    • The size of the liquid, relative to the object.
  • Flow
    • A velocity that all objects in the liquid will be dragged towards.
  • Copy From Box Collider
    • If a Box Collider is on the same GameObject, you can copy the collider's center and size variables to the liquid easily
  • Set Water/Lava/Acid Density
    • Sets the Density value to common densities.
  • Ambience Barcode
    • The MonoDisc barcode of the ambience that plays while the player is submerged in the liquid.
  • Ambience Enabled
    • Toggles whether the ambience will play.
  • Splash VFX Barcode
    • The Spawnable barcode for the visual effect that plays when objects impact the liquid.
  • Splash SFX Barcode
    • The MonoDisc barcode for the sound that plays when objects impact the liquid.
  • Splash Enabled
    • Toggles whether splashes will occur.

Clone this wiki locally