Hi,
While the unity editor is a great tool, there are some short-comings when dealing with large amounts of data (for example, GUI layout structures such as rectanges and style objects).
As part of my work in Omek Interactive, I created a small editor extension that makes these operations much quicker.
We wanted to give something back to the community, and this has improved our workflow, so we decided to release this.
To use the extension, put “CopyPasteEditor.cs” in an Editor subdirectory, and add the “CopyPasteComponent” component to an object.
The newly created component will have the list of all of the members in the GameObject that is being rendered. Each member will have a “Copy” button, and when an object is selected for copying, other members of the same type will have a “Paste” button that will copy the settings between the objects.
I attached a screenshot of what it looks like. You can also see the “recursion depth” parameter, which allows you to copy nested members or structures as well.
This script comes with a bonus : it can be used to save changes made during runtime. If you Copy an object when running, the copy will remain alive when the game is stopped, allowing you to paste it (with the changes made during runtime) on top of the original object that had its properties reverted.
The license is MIT, which should be permissive enough for anything.
Enjoy!
Feedback and comments are welcome as always, of course.
475347–16695–$CopyPasteEditor.cs (6.52 KB)
475347–16696–$CopyPasteComponent.cs (1.71 KB)
