numParticlesToEmit
The number of particles the emitter should emit before stopping.
Declaration
var numParticlesToEmit: Int { get set }Mentioned in
Discussion
The default value is 0, which indicates that emitter creates an endless stream of particles. If a non-zero value is provided, then the emitter stops generating particles after it has created the specified number of particles.