mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 22:50:19 +00:00
59ee512292
# Objective - Bevy currently has no simple way to make an "empty" Entity work correctly in a Hierachy. - The current Solution is to insert a Tuple instead: ```rs .insert_bundle((Transform::default(), GlobalTransform::default())) ``` ## Solution * Add a `TransformBundle` that combines the Components: ```rs .insert_bundle(TransformBundle::default()) ``` * The code is based on #2331, except for missing the more controversial usage of `TransformBundle` as a Sub-bundle in preexisting Bundles. Co-authored-by: MinerSebas <66798382+MinerSebas@users.noreply.github.com> Co-authored-by: Carter Anderson <mcanders1@gmail.com> |
||
---|---|---|
.. | ||
3d_scene.rs | ||
lighting.rs | ||
load_gltf.rs | ||
many_cubes.rs | ||
msaa.rs | ||
orthographic.rs | ||
parenting.rs | ||
pbr.rs | ||
shadow_biases.rs | ||
shadow_caster_receiver.rs | ||
spherical_area_lights.rs | ||
texture.rs | ||
update_gltf_scene.rs | ||
wireframe.rs |