bevy/crates/bevy_audio
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
..
src Fix leftover references to children when despawning audio entities (#12407) 2024-03-11 18:16:13 +00:00
Cargo.toml Fix leftover references to children when despawning audio entities (#12407) 2024-03-11 18:16:13 +00:00
CONTRIBUTING.md Contribution guidelines for bevy_audio (#12338) 2024-03-08 19:49:54 +00:00