Skip to content

ComponentIdFor should be linked in the ComponentId docs #19535

Open
@lotus128

Description

@lotus128

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

Currently, we get ComponentId using World::component_id. This is not ideal, because that requires an exclusive system with a World system param.

What solution would you like?

I want a new system param for a ComponentId so that I can use ComponentId in a non-exclusive system.

What alternative(s) have you considered?

For now, I will use type id.

Additional context

I need this because I don't want to use generics type parameter for components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-DocsAn addition or correction to our documentationD-TrivialNice and easy! A great choice to get started with BevyS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions