Skip to content

LifetimeFractionSubEmitter Class

Definition

Namespace: Brine2D.Systems.Rendering

Pairs a normalised lifetime fraction with a SubEmitterConfig that fires once per particle when the particle's elapsed fraction crosses the threshold. Assign instances to LifetimeFractionSubEmitters.

C#
public sealed class LifetimeFractionSubEmitter

Inheritance System.Object → LifetimeFractionSubEmitter

Properties
Config The sub-emitter config to burst at the particle's world position.
Fraction Normalised lifetime fraction at which the sub-emitter fires, in the range [0, 1]. 0 = immediately at birth \(prefer [BirthSubEmitters](../ParticleEmitterComponent/BirthSubEmitters.md 'Brine2D\.Systems\.Rendering\.ParticleEmitterComponent\.BirthSubEmitters') instead\), 0.5 = halfway through, 1 = at death \(prefer [DeathSubEmitters](../ParticleEmitterComponent/DeathSubEmitters.md 'Brine2D\.Systems\.Rendering\.ParticleEmitterComponent\.DeathSubEmitters') instead\).