Skip to content

SystemState can be cached using its ExclusiveSystemParam implementation, but the docs don't mention this. #12587

@Themayu

Description

@Themayu

How can Bevy's documentation be improved?

This issue is a more specific form of #8770, which has been open for over nine months with no apparent resolution.

The caching example for SystemState in the documentation shows the use of a function-local struct to cache a SystemState object. However, caching a SystemState has gotten easier since this documentation was written - with the addition of ExclusiveSystemParam and its implementation on &'a mut SystemState<P>, we can have the ECS handle caching for us.

The documentation should be updated to reflect this.

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 Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions