In Unity3D, there is a API doing this job.However, cocos2d-x doesn’t support clone hierarchy node tree.I believe this is a desirable function.
Any solution to do this work?
I want to devote all my esteem to you with one song.－－－－－I want nobody nobody but youI want nobody nobody but youHow can I be with anotherI don’t want any otherI want nobody nobody nobody nobody－－－－－－
nobody answer my question!
Hi!There is no build-in solution for your case. You should recursively get all children of your node and copy all valuable for you parameters to new nodes with same type.
To tell the truth, Unity is better than cocos2d so much!