Open dbidwell94 opened 6 months ago
I would also love to be able to do this!
The desired behavior should be achievable with the results from #55 and #58 . Instead of using the native With
and Without
filters, you should be able to use WithOne
and WithoutOne
to get the same result. If I'm missing a case, let me know!
In my particular use case, I would like the ability to be able to use traits in a
With<>
orWithout<>
filter in the query.Example:
The above return a compile error because
Sized
is not implemented for(dyn OrderItem + 'static)
(dyn OrderItem + 'static): bevy::prelude::Component
is not satisfied the following other types implement traitbevy::prelude::Component
The definition for
OrderItem
is as such: