Click or drag to resize
DigitalRuneParticleSystemNumberOfActiveParticles Property
Gets the number of active particles.

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

Property Value

Type: Int32
The number of active particles.
Remarks

ParticleStartIndex points to the first active particle in the particle parameter arrays. NumberOfActiveParticles counts how many particles are active.

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