Reflection - Add a way to register or modify RequiredComponents
for a component whose type you don't know
#18420
Labels
A-ECS
Entities, components, systems, and events
A-Reflection
Runtime information about types
C-Feature
A new feature, making something new possible
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
X-Uncontroversial
This work is generally agreed upon
What problem does this solve or what need does it fill?
Currently you can:
World::register_component_with_descriptor
World::register_required_components()
&RequiredComponents
for any componentRequiredComponents
BUT PURELY with compile time information i.e. no&self
But there is no way to either (as far I can see):
RequiredComponents
&mut
for the componentsRequiredComponents
after the factWhat solution would you like?
&mut RequiredComponents
for any component&self
toComponent::register_required_components
RequiredComponents
argument toregister_component_with_descriptor
or an alternative function with that argumentWhat alternative(s) have you considered?
register_required_components
yourself.ComponentInfo
yourselfThe text was updated successfully, but these errors were encountered: