mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
4ae6a66481
# Objective From my understanding, although resources are not meant to be created and removed at every frame, they are still meant to be created dynamically during the lifetime of the App. But because the extract_resource API does not allow optional resources from the main world, it's impossible to use resources in the render phase that were not created before the render sub-app itself. ## Solution Because the ECS engine already allows for system parameters to be `Option<Res>`, it just had to be added. --- ## Changelog - Changed - `extract_resource` now takes an optional main world resource - Fixed - `ExtractResourcePlugin` doesn't cause panics anymore if the resource is not already inserted |
||
---|---|---|
.. | ||
batching | ||
camera | ||
color | ||
mesh | ||
primitives | ||
render_graph | ||
render_phase | ||
render_resource | ||
renderer | ||
texture | ||
view | ||
extract_component.rs | ||
extract_instances.rs | ||
extract_param.rs | ||
extract_resource.rs | ||
globals.rs | ||
globals.wgsl | ||
gpu_component_array_buffer.rs | ||
instance_index.wgsl | ||
lib.rs | ||
maths.wgsl | ||
pipelined_rendering.rs | ||
render_asset.rs | ||
settings.rs | ||
spatial_bundle.rs |