CopyComponents

Author: Yuri Kunde Schlesner (yuriks)

Description
This script matches GameObjects from one hierarchy to the other, and then clones all components, transferring them to the destination.

Usage
Place this script in Assets/Editor and select the option in the tools menu. Specify the source and destination GameObject hierarchies, as well as an additional prefix on the destination objects. GameObjects in the source without a match in the destination will be skipped and a warning printed. NOTE: Save your scene before running this script. The functions used tend to mess up Unity's internal data structures and make it crash ocasionally.