Warn if there is no UI camera#1440
Warn if there is no UI camera#1440jakobhellermann wants to merge 2 commits intobevyengine:masterfrom
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_STARTUPwhich checks whether the world contains anyNodes but no ui cam and logsTo opt out, a
ValidationConfigis added tobevy_core. IMO adding a separate resource for every future validation system (e.g. #1439) would quickly become too complicated.