An object relevant to gameplay, with functionality entirely provided by a collection of component objects.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
GKEntity object represents an entity in games with Entity-Component architecture. In this design, an entity is a general type for objects relevant to the game. Entities typically define no functionality of their own—instead, you define an entity’s features through composition, by adding components that each handle specific aspects of an entity’s behavior in a general way. Because components (
GKComponent subclasses) are general and reusable, you can add many kinds of entities to a game by combining components in different ways, without needing to design new entity classes.