Use RenderStartup instead of a FromWorld impl whenever possible
Open
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
Assessment
This issue has not been assessed yet.