---
title: userData
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/sknode/userdata
---

# userData

A dictionary containing arbitrary data.

## Declaration

```swift
var userData: NSMutableDictionary? { get set }
```

## Discussion

Discussion You use this property to store your own data in a node. For example, you might store game-specific data about each node to use inside your game logic. This can be a useful alternative to creating your own node subclasses to hold game data. SpriteKit does not do anything with the data stored in the node. However, the data is archived when the node is archived.
