| ParticleSystemMaxNumberOfParticles Property |
Gets the maximum number of particles.
Namespace: DigitalRune.ParticlesAssembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public int MaxNumberOfParticles { get; set; }
Public Property MaxNumberOfParticles As Integer
Get
Set
public:
property int MaxNumberOfParticles {
int get ();
void set (int value);
}
member MaxNumberOfParticles : int with get, set
Property Value
Type:
Int32The maximum number of particles. The default value is 100.
Exceptions 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