It would be nice to have dedicated function for finding components with certain interface.
Right now you have to FindDescendantComponents and then cast every one of them or create classes which isn’t ideal.
Existing solution:
FoundComponents := Entity.FindDescendantComponents(some_component)
for (FoundComponent : FoundComponents):
if:
CastedInterface := some_interface[FoundComponent]
then:
CastedInterface.DoSomething()
Suggested solution:
FoundInterfaces := Entity.FindDescendantComponentsWithInterface(some_interface)
for (FoundInterface : FoundInterfaces):
FoundInterface.DoSomething()