Duplicate node
#1046
Replies: 1 comment 2 replies
-
Do your entities all have the same components? Otherwise they need to be treated individually and in that case you can look at the example in the repo to copy a single entity, then apply it to your hierarchy. If, on the other hand, they all have the same components, it's easier because you can collect the entities and copy all the elements one storage at a time probably. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using EnTT with NodeComponent
and I want to duplicate a node with all the children.
Of course, children can have a lot of different components and the duplicated node should be a sibling of the duplicating node.
Any tips or advice of how to do that properly ?
Best,
Baptiste
Beta Was this translation helpful? Give feedback.
All reactions