bevy
bevy copied to clipboard
Generic hierarchy propagation
Objective
- There are two different hierarchy propagation for now:
Transform
/GlobalTransform
andVisibility
/ComputedVisibility
- They slightly differ 😱
Solution
- Make a generic system that do both
- That can also be used by users if they want to add their own hierarchy propagation without handling all the details
Can you explain the differences between this approach and https://github.com/bevyengine/bevy/pull/4216 ?
Can you explain the differences between this approach and #4216 ?
Well the biggest difference is that I hadn't seen it before... Other than that, that PR is very similar.
- #4216 is adding a extension on app to automatically add the systems, this one let users do it themselves
- #4216 doesn't handle visibility (which wasn't propagated at the time) and is missing a few updates that were done since
Indeed it looks pretty similar to #4216 , but it not requiring the App extension thing seems like an improvement.