#Is there any abstract components

4 messages · Page 1 of 1 (latest)

ivory rover
#

excuse me, would ECS can implement operations similar to inheritance? I have three components ABC, and want to query whether an entity has one of this. could I query an abstract component T that refers to ABC instead of a specific component🤔

remote crystal
ivory rover
fierce phoenix
#

You can use Query<AnyOf<&A, &B, &C>> to get entities with any of them