removeComponent(foundIn:)
Removes any instances of the component system’s component class in the specified entity from the component system.
Declaration
func removeComponent(foundIn entity: GKEntity)Parameters
- entity:
An entity.
Discussion
This method examines the components array of the specified entity, removing any components whose type matches the component system’s componentClass property from the component system. If those components are not in the component system, this method has no effect.