0

In Reality Composer Pro there is a flag to toggle the loop of the particle system. In code I couldn't find a .loop value on the ParticleEmitterComponent - does anyone know how else I can disable the looping there?

Mitemmetim
  • 520
  • 3
  • 12

1 Answers1

0

To disable the loop you have to set the .timing value to once like this:

var particles = ParticleEmitterComponent()
particles.timing = .once(warmUp: 0, emit: .init(duration: 1))
Mitemmetim
  • 520
  • 3
  • 12