Click or drag to resize
DigitalRuneParticleSystemMaxNumberOfParticles Property
Gets the maximum number of particles.

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

Property Value

Type: Int32
The maximum number of particles. The default value is 100.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is negative.
Remarks
This value determines the maximum number of particles which can be alive at a single moment. This value is equal to the length of the particle parameter arrays. If the maximum allowed number of particles is reached, no new particles can be created. Old particles have to be removed before new particles can be added. (Particles can be killed by setting their "NormalizedAge" to 1 or greater. When killing particles the oldest particles need to be killed first.)
See Also