Skip to content

ParticleEmitterComponent.OnParticleDied Property

Definition

Namespace: Brine2D.Systems.Rendering

Optional callback invoked by ParticleSystem when a particle expires naturally. The particle is passed with its final state and is returned to the pool immediately after the callback returns. Do not hold a reference to the particle. Not invoked when Stop() force-clears particles. This property is not captured by CaptureDefaultState().

C#
public System.Action<Brine2D.Systems.Rendering.Particle>? OnParticleDied { get; set; }

Property Value

System.Action<Particle>