bevy/crates/bevy_scene/src
Brandon Reinhart 7570c9f3d2
Map entities from a resource when written to the world. (#13650)
# Objective

- Fix #10958 by performing entity mapping on the entities inside of
resources.

## Solution

- Resources can reflect(MapEntitiesResource) and impl MapEntities to get
access to the mapper during the world insert of the scene.

## Testing

- A test resource_entity_map_maps_entities confirms the desired
behavior.

## Changelog

- Added reflect(MapEntitiesResource) for mapping entities on Resources
in a DynamicScene.

fixes 10958
2024-06-03 16:33:24 +00:00
..
bundle.rs Implement clone for most bundles. (#12993) 2024-04-16 16:37:09 +00:00
dynamic_scene_builder.rs
dynamic_scene.rs Map entities from a resource when written to the world. (#13650) 2024-06-03 16:33:24 +00:00
lib.rs Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
scene_filter.rs
scene_loader.rs Fix TypeRegistry use in dynamic scene (#12715) 2024-03-28 03:09:31 +00:00
scene_spawner.rs Fix beta lints (#12980) 2024-04-16 02:46:46 +00:00
scene.rs Replace FromWorld requirement on ReflectResource and reflect Resource for State<S> (#12136) 2024-02-27 15:49:39 +00:00
serde.rs Fix TypeRegistry use in dynamic scene (#12715) 2024-03-28 03:09:31 +00:00