#children not being despawned properly

19 messages · Page 1 of 1 (latest)

hybrid isle
#

you need to use despawn_recursive(). despawn() only despawns the target entity

untold grotto
hybrid isle
#

it would be intuitive to assume so, yeah. apparently the devs are planning to make that the default behavior at some point.

#

but I think the reason why it's a different method is because technically the hierarchy part of bevy ECS is optional (provided by bevy_hierarchy crate)

untold grotto
hybrid isle
#

yeah, ChatGPT is often outdated, and bevy development moves relatively fast

untold grotto
#

thank you for this information (if true) ive been trying to solve this error for a long time

hybrid isle
#

always make sure to check the docs

untold grotto
#

yeah

#

very helpful, i think this might solve another bug i've had to deal witht oo

hybrid isle
untold grotto
#

i see

#

YES

#

it works

#

tysm @hybrid isle

#

valuable lesson learned, don't trust chatgpt

hybrid isle
#

you're welcome. you can check out the examples in the repo if you're looking for something specific and how it's actually done in the latest version

GitHub

A refreshingly simple data-driven game engine built in Rust - bevyengine/bevy

#

it's very well organized

untold grotto
#

thanks