bevy/tools
Robert Swain a0a3d8798b ExtractResourcePlugin (#3745)
# Objective

- Add an `ExtractResourcePlugin` for convenience and consistency

## Solution

- Add an `ExtractResourcePlugin` similar to `ExtractComponentPlugin` but for ECS `Resource`s. The system that is executed simply clones the main world resource into a render world resource, if and only if the main world resource was either added or changed since the last execution of the system.
- Add an `ExtractResource` trait with a `fn extract_resource(res: &Self) -> Self` function. This is used by the `ExtractResourcePlugin` to extract the resource
- Add a derive macro for `ExtractResource` on a `Resource` with the `Clone` trait, that simply returns `res.clone()`
- Use `ExtractResourcePlugin` wherever both possible and appropriate
2022-05-30 18:36:03 +00:00
..
build-wasm-example helper tool to build examples in wasm (#4776) 2022-05-17 19:04:08 +00:00
ci update xshell to 0.2 (#4789) 2022-05-30 16:21:03 +00:00
spancmp simple tool to compare traces between executions (#4628) 2022-05-06 19:29:44 +00:00
example_showcase.sh Small script fix (#2591) 2021-08-13 21:57:23 +00:00
publish.sh ExtractResourcePlugin (#3745) 2022-05-30 18:36:03 +00:00