---
title: systemSpawnedOnDying
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnparticlesystem/systemspawnedondying
---

# systemSpawnedOnDying

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

## Declaration

```swift
var systemSpawnedOnDying: SCNParticleSystem? { get set }
```

## Discussion

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. important: Adding a new particle system to the scene for each particle death can drastically increase the total number of rendered particles. To maintain adequate rendering performance, set the loops property to false for any particle system you assign to the systemSpawnedOnDying property.

## See Also

### Spawning Additional Particle Systems

- [systemSpawnedOnCollision](scenekit/scnparticlesystem/systemspawnedoncollision.md)
- [systemSpawnedOnLiving](scenekit/scnparticlesystem/systemspawnedonliving.md)
