Skip to content

ParticleEmitterComponent.OnParticleSpawned Property

Definition

Namespace: Brine2D.Systems.Rendering

Optional callback invoked by ParticleSystem immediately after a particle is spawned and added to the active list. Do not hold a reference to the particle beyond the callback. This property is not captured by CaptureDefaultState().

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

Property Value

System.Action<Particle>