One (or more) built-in components (E.g. IsDefaultUiCamera) can't be used with "require" #17052
Labels
A-Cross-Cutting
Impacts the entire engine
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
D-Trivial
Nice and easy! A great choice to get started with Bevy
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
Bevy version
0.15.0
[Optional] Relevant system information
N/A
What you did
Tried to use IsDefaultUiCamera with the new require(component) system. Adapted from code in the official UI example.
What went wrong
IsDefaultUiCamera doesnt implement default. This is something bevy should always do when components can be "required" in my opinion. The IsDefaultUiCamera component is a unit-like struct, so there is no data to attach either.
Additional information
This is mostly a reminder/todo for myself. It's a small thing to fix, but I'm sure there are other components that need the same sort of attention. I'm also fairly sure this may be a dupe, but with 2k+ issues I don't want to spend the time to find it.
Feel free to link a dupe if you know one, this feels like something that could be an overarching issue and the more components that can be fixed in a single commit the better imo.
If someone wants to fix this, thanks in advance!
The text was updated successfully, but these errors were encountered: