Skip to content

Conversation

@eugineerd
Copy link
Contributor

Objective

While experimenting with implementing a custom Query I noticed that ComponentIndex isn't accessible to user code, but it would be very useful to speed up archetype matching.

Solution

Make Archetype::component_index getter pub.

@alice-i-cecile alice-i-cecile added this to the 0.18 milestone Dec 31, 2025
@alice-i-cecile alice-i-cecile added A-ECS Entities, components, systems, and events C-Usability A targeted quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it labels Dec 31, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Dec 31, 2025
Merged via the queue into bevyengine:main with commit d7fda58 Dec 31, 2025
45 checks passed
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-Usability A targeted quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants