public class LiquidContainerController
Inherits MonoBehaviour
[ExecuteAlways]
Controls the little liquid simulation visual in most liquid containers
Fields
public Rigidbody2D Rigidbody
[SkipSerialisation]
Reference to the rigidbody
public AudioSource SloshingSource
[SkipSerialisation]
Reference to the AudioSource
that plays the sloshing noise
public float SloshingIntensity
How intense should the sloshing noise be?
public Material LowFidelityLiquid
[SkipSerialisation]
A reference to the material asset that is used when Fancy Effects is disabled
public Bounds Container
The bounds of the container that the particles will stay inside of
public float FillPercentage
How full should this container be, visually? Ranges from 0.0 to 1.0
public float ParticleRadius
How large are the particles? 1 by default.
Properties
public Color Color { get; set; }
What colour should the particles be?
Methods
public void AddForce(Vector2 globalForce, float randomisation = 0)
Add a force to all particles in the container (if it is a fancy container) in global space
bi bij bibi