Skip to content

World::init_component docs do not explain that components are generally automatically initialized #16447

@alice-i-cecile

Description

@alice-i-cecile

How can Bevy's documentation be improved?

init_component is used to register components for use. However, when using systems, components are automatically registered when the system is initialized.

This was spotted when reviewing #16434, which suggests that you call this method if World::try_query fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-DocsAn addition or correction to our documentationD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!X-UncontroversialThis work is generally agreed upon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions