-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make hierarchy semi-mutable #6012
Comments
The point of the rfc is that the hierarchy should never be in an invalid state. Allowing users to mutate |
Hmm... I understand why this might be a problem. My workaround is to create a custom |
Unlike For example:
|
Yes, this is an issue. I totally understand why |
What problem does this solve or what need does it fill?
After proposal bevyengine/rfcs#53 and PR #4197 hierarchy became managable through commands. While this makes usage less error prone, it introduces several inconveniences. For example, when I want to store a scene, I have to store redundantly
Children
andParent
components, otherwise my scene will be broken. Same for replication over the network - I had to introduce an additional component (I called itSyncParent
) that, when changed, pushes children through commands. But my workaround also not perfect because of one frame delay.What solution would you like?
What if we do something similar to
Transform
andGlobalTransform
? I.e. let user updateParent
and the change will be propagated toChildren
.The text was updated successfully, but these errors were encountered: