Skip to content

Make hierarchy semi-mutable #6012

Closed
Closed
@Shatur

Description

@Shatur

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 and Parent components, otherwise my scene will be broken. Same for replication over the network - I had to introduce an additional component (I called it SyncParent) 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 and GlobalTransform? I.e. let user update Parent and the change will be propagated to Children.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-UsabilityA targeted quality-of-life change that makes Bevy easier to useX-ControversialThere is active debate or serious implications around merging this PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions