Skip to content
Discussion options

You must be logged in to vote

You can always make your own componet

#[derive(Component)]
struct BinParents(Vec<Entity>);

Bevy's Parent and Children component are only meant to be used with Visibility and Transform. Because of this, each entity is limited to only a single parent.

But nothing prevents you from making your own Component that acts like a Parent but is a different component.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by huang12zheng
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants