Contents

loops

A Boolean value that determines whether the system repeats its emission and idle periods.

Declaration

var loops: Bool { get set }

Discussion

If this value is true (the default), you can make the system emit particles periodically or sporadically. For example, in a looping system where the emissionDuration value is 1.0 seconds and the idleDuration value is 1.0 seconds, the system alternates alternates between equal one-second periods of spawning and not spawning particles. Use the emissionDurationVariation and idleDurationVariation properties to randomize the duration of each emission and idle period, making the emission behavior more sporadic.

Specify false for particle systems that create one-shot effects, such as an explosion that appears when a game character is defeated.

See Also

Managing Particle Emission Timing