---
title: "addParticleSystem(_:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnnode/addparticlesystem(_:)"
---

# addParticleSystem(_:)

Attaches a particle system to the node.

## Declaration

```swift
func addParticleSystem(_ system: SCNParticleSystem)
```

## Parameters

- `system`: A particle system.

## Discussion

Discussion When attached to a node, a particle system’s emitter location follows that node as it moves through the scene. To instead attach a particle system to a location in the scene’s world coordinate space, use the corresponding method on SCNScene. For details on particle systems, see SCNParticleSystem.

## See Also

### Working with Particle Systems

- [particleSystems](scenekit/scnnode/particlesystems.md)
- [removeParticleSystem(_:)](scenekit/scnnode/removeparticlesystem(_:).md)
- [removeAllParticleSystems()](scenekit/scnnode/removeallparticlesystems().md)
