Initializes a new entity object.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
A new entity object.
If you create a
GKEntity subclass and define any additional initializers, you must delegate to this initializer. You do not need to subclass
GKEntity to use Entity-Component architecture—generally, you should create a custom entity class only when you need a place to store state or resources that are shared by multiple components.