Support required components which have no sensible default #18717
Labels
C-Feature
A new feature, making something new possible
S-Needs-Triage
This issue needs to be labelled
What problem does this solve or what need does it fill?
Required components spawns required components using the
Default
implementation, or a default specified in the#[require(...)]
attribute.I'd like to have a way to force the caller to provide some required components at spawn time.
What solution would you like?
Maybe something like:
What alternative(s) have you considered?
Continue using bundles.
Add the required component as a field on the "concept component".
From the general design guidelines:
However, there's unfortunately no way to query by component field from the ECS, AFAICT...
Additional context
N/A
The text was updated successfully, but these errors were encountered: