Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 648 Bytes

File metadata and controls

16 lines (10 loc) · 648 Bytes

Unity对象的所有组件深拷贝与粘贴

Copy all the component include values in Hierarchy!

You can copy a prefab or gameobject in hierarchy ,and paste all the component in other gameobject. Here, afford to *.cs, one of them is just copy the currrent level component ,and the other one is copy all the component include the subobjects's components.

You can download the folder,and copy to you project,then u will see the function under the GameObject.

http://blog.csdn.net/cartzhang/article/details/51454847 So ,any question just let me known.

Thanks.