Skip to content

Latest commit

 

History

History
 
 

CopyAllComponents

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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.