Instance Property

components

The entity’s list of components.

Declaration

@property(nonatomic, readonly, retain) NSArray<GKComponent *> *components;

See Also

Managing an Entity’s List of Components

- componentForClass:

Returns the entity’s component for the specified component class.

- addComponent:

Adds a component to the entity.

- removeComponentForClass:

Removes the component of the specified class from the entity.