#children not being despawned properly
19 messages · Page 1 of 1 (latest)
thank you, i'll try that. i thought when despawning an entity, all the children were automatically despawned as well?
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)
i asked chatgpt if children were despawned when the parent was despawned. I guess i shouldnt trust chatgpt on stuff like that then
yeah, ChatGPT is often outdated, and bevy development moves relatively fast
thank you for this information (if true) ive been trying to solve this error for a long time
always make sure to check the docs
in fact, it's implemented as an extension method, not part of the standard EntityCommands
i see
YES
it works
tysm @hybrid isle
valuable lesson learned, don't trust chatgpt
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
it's very well organized
thanks