Skip to main content

LiquidParticleMarker

A class in Root.Township, Alta.Liquid.

Marks pooled liquid particles with the container they came from. Cleared when the particles go back to the pool.

Constructors​

MemberWhat it is
LiquidParticleMarker()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Properties​

MemberWhat it is
ILiquidContainer Container { get; set; }The container the particles came from.

Methods​

2 private and internal methods
MemberWhat it is
private void Awake()Hooks the pooled object's release to clear the container.
private void ResetContainer(PooledObject pooledObject)Clears Container when released to the pool.