Contents

addComponent(foundIn:)

Adds any instances of the component system’s component class in the specified entity to the component system.

Declaration

func addComponent(foundIn entity: GKEntity)

Parameters

  • entity:

    An entity.

Discussion

This method examines the components array of the specified entity, adding any components whose type matches the component system’s componentClass property to the component system.

See Also

Managing a List of Components