bevyengine / bevyengine/bevy

Use RenderStartup instead of a FromWorld impl whenever possible

Open
#19,887 0 comments 0 reactions 0 assignees View on GitHub
A-Rendering D-Straightforward
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

Currently, when we need to initialize a resource that lives only in the render world we use a `FromWorld` impl that let's us query the world when creating that resource. This works fine, but isn't as nice as using a system and it makes it harder to create multiple resources that could share some initialization data.

We recently introduced a new RenderStartup schedule that let's us write a system that runs once on startup of the render world. We should migrate all those render world `FromWorld` impl to use this new schedule instead when it makes sense.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.