Contents

systemSpawnedOnDying

Another particle system to be added to the scene when a particle dies.

Declaration

var systemSpawnedOnDying: SCNParticleSystem? { get set }

Discussion

When a particle reaches the end of its particleLifeSpan duration and is removed from the scene, SceneKit adds a copy of the specified particle system to the scene at the particle’s final location.

Use this property to simulate effects such as fireworks—one particle system simulates launching fireworks, and another particle system simulates each firework’s explosion.

The default value of this property is nil, specifying that no additional systems are added to the scene on particle death.

See Also

Spawning Additional Particle Systems