<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKEmitterNode/targetNode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKEmitterNode(py)targetNode"
  },
  "title" : "targetNode"
}
-->

# targetNode

The target node that renders the emitter’s particles.

```
weak var targetNode: SKNode? { get set }
```

## Discussion

The default value is `nil`, which means that particles are treated as if they were children of the emitter node. In future frames of animation, the particle positions are affected by the emitter node’s properties. If you specify a different target node, the initial properties of new particles are calculated based on the emitter node’s properties, but in future frames of animation the particles are treated as if they were children of the target node.

For example, assume you have an emitter node as a child of the scene node and the node is being rotated by changing its [`zRotation`](/documentation/SpriteKit/SKNode/zRotation) property. The behavior of the emitter node changes based on the value of the target node:

- If the [`targetNode`](/documentation/SpriteKit/SKEmitterNode/targetNode) property is `nil`, then the positions of both previously generated and new particles are rotated.
- If the [`targetNode`](/documentation/SpriteKit/SKEmitterNode/targetNode) property points to the scene node, then new particles are adjusted when the emitter node rotates, but previously generated particles are not.

By spawning the particles inside the scene node, they have behavior independent of the emitter’s properties.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)