Instance Property


A dictionary containing arbitrary data.


@property(nonatomic, retain) NSMutableDictionary *userData;


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.