Skip to content
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

Allow cloning entities #1452

Open
RiscadoA opened this issue Jan 27, 2025 · 0 comments
Open

Allow cloning entities #1452

RiscadoA opened this issue Jan 27, 2025 · 0 comments
Labels
A-Core B-ECS P-Normal This issue isn't a big priority, but it would still be nice to have it closed soon

Comments

@RiscadoA
Copy link
Member

Problem

Currently entities cannot be cloned. This behavior can be useful in games sometimes.

Solution

We should add a clone operations to the Commands system argument which creates a new entity with the same exact components and relations as another entity.

Any entities which have a tree relation directed to the cloned entity (e.g. ChildOf) should also be cloned.

@RiscadoA RiscadoA added A-Core B-ECS P-Normal This issue isn't a big priority, but it would still be nice to have it closed soon labels Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Core B-ECS P-Normal This issue isn't a big priority, but it would still be nice to have it closed soon
Projects
None yet
Development

No branches or pull requests

1 participant