Click or drag to resize
DigitalRuneParticleSystemNumberOfLivingParticles Property
Gets the number of living particles.

Namespace: DigitalRune.Particles
Assembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public int NumberOfLivingParticles { get; }

Property Value

Type: Int32
The number of living particles.
Remarks

NumberOfLivingParticles counts the number of particles where the "NormalizedAge" parameter is less than 1. This number does not include the living particles of the child particle systems (see Children).

Usually, NumberOfActiveParticles is equal to NumberOfLivingParticles particles because all particles have the same maximal "Lifetime". Only if a custom particle effector randomly kills particles (by setting the particle parameter "NormalizedAge" to a value equal to or greater than 1) or if "Lifetime" is a varying particle parameter, then NumberOfLivingParticles can be less than NumberOfActiveParticles; that means that some particles are active but have already died.

See Also