Skip to content

Tracking: Take advantage of ComponentId's being discoverable before registration #18184

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

Open
2 of 5 tasks
ElliottjPierce opened this issue Mar 6, 2025 · 0 comments
Open
2 of 5 tasks
Labels
A-ECS Entities, components, systems, and events C-Feature A new feature, making something new possible C-Tracking-Issue An issue that collects information about a broad development initiative

Comments

@ElliottjPierce
Copy link
Contributor

ElliottjPierce commented Mar 6, 2025

What problem does this solve or what need does it fill?

Lots of planned and wishlist features require (or would benefit from) knowing a component or resource's ComponentId before it is registered. Effectively, we can reserve an id with only &Components and know that the id will be the same id it receives when registered. Further, we can also queue a registration to happen with only &Components, which provides additional flexibility.

This is very useful for assets as entities (#11266), multi-world bevy, readonly queries and other readonly system parameters, pre-registering components, scripting, (and probably more).

History

This is a better alternative for #18155.

Roadmap

After #18173, parallel work may begin on components as entities and assets as entities.

@ElliottjPierce ElliottjPierce added C-Feature A new feature, making something new possible S-Needs-Triage This issue needs to be labelled labels Mar 6, 2025
@alice-i-cecile alice-i-cecile added A-ECS Entities, components, systems, and events C-Tracking-Issue An issue that collects information about a broad development initiative and removed S-Needs-Triage This issue needs to be labelled labels Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Feature A new feature, making something new possible C-Tracking-Issue An issue that collects information about a broad development initiative
Projects
None yet
Development

No branches or pull requests

2 participants