Instance Property

entities

The list of GameplayKit entities managed by the scene.

Declaration

@property(nonatomic, readonly) NSArray<GKEntity *> *entities;

Discussion

When you add entities (and their components) to a scene in the Xcode SpriteKit scene editor, Xcode automatically adds them to this array.

See Also

Managing Entities and Components

- addEntity:

Adds a GameplayKit entity to the list of entities managed by the scene.

- removeEntity:

Removes a GameplayKit entity from the list of entities managed by the scene.