#Is there any abstract components
4 messages · Page 1 of 1 (latest)
You might be interested in bevy-trait-query
Okay, thank you very much. Let me take a look👍
You can use Query<AnyOf<&A, &B, &C>> to get entities with any of them
4 messages · Page 1 of 1 (latest)
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🤔
You might be interested in bevy-trait-query
Okay, thank you very much. Let me take a look👍
You can use Query<AnyOf<&A, &B, &C>> to get entities with any of them