-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warn if there is no UI camera #1440
Warn if there is no UI camera #1440
Conversation
I think opting out of this should be a setting on the |
I kinda agree, but on the other hand I feel like one central place to configure these kinds of warnings would be nice. Since the |
The only viable alternative I saw was adding |
You'd set it on the
|
I think my ideal solution is to make the UiCamera completely optional (and fall back to a default value). Most people don't need control over the UI camera, so theres no real reason to dictate one (other than the fact that its easier to require one because that behavior is consistent with the other render passes). Given that theres some design tradeoffs here, maybe its better to just move directly to an "optional ui camera" model? |
Ive been pushing us toward a "resource as configuration model" over "configuring plugins during construction model" for a number of reasons: #1382 (comment) Imo users configuring Plugins in their constructor should be considered an anti-pattern. |
That's reasonable, I'll close this then. |
fixes the UI part of #1432.
A system is added to
POST_STARTUP
which checks whether the world contains anyNode
s but no ui cam and logsTo opt out, a
ValidationConfig
is added tobevy_core
. IMO adding a separate resource for every future validation system (e.g. #1439) would quickly become too complicated.