bevy/crates/bevy_audio/src
Rob Parrett c9e32858d7
Fix leftover references to children when despawning audio entities (#12407)
# Objective

Fixes #12402

## Solution

Use `despawn_recursive` instead of `despawn` for despawning
`PlaybackMode::Despawn` audio.

## Migration Guide

`PlaybackSettings::DESPAWN` (`PlaybackMode::Despawn`) now despawns the
audio entity's children as well. If you were relying on the previous
behavior, you may be able to use `PlaybackMode::Remove`, or you may need
to use `PlaybackMode::Once` and manage your audio component lifecycle
manually.
2024-03-11 18:16:13 +00:00
..
audio_output.rs Fix leftover references to children when despawning audio entities (#12407) 2024-03-11 18:16:13 +00:00
audio_source.rs Reorder impl to be the same as the trait (#11076) 2023-12-24 17:43:55 +00:00
audio.rs Fix leftover references to children when despawning audio entities (#12407) 2024-03-11 18:16:13 +00:00
lib.rs Add "all-features = true" to docs.rs metadata for most crates (#12366) 2024-03-08 20:03:09 +00:00
pitch.rs More ergonomic spatial audio (#9800) 2023-10-09 19:43:56 +00:00
sinks.rs More ergonomic spatial audio (#9800) 2023-10-09 19:43:56 +00:00