0

In GameplayKit, is it possible to have a Component class hierarchy and to get the child component calling for it parent class?

For example if we have:

  • a Component class BComponent that extends AComponent.
  • an Entity for which we add the component B using addComponent(BComponent())

currently: entity.component(ofType: AComponent.self) return nil

0 Answers0