CopyTransform

Changelog:

v1.0 [Steve Allison-Bunnell / aarku] - script created v1.1 [AndrewRaphaelLukasik] - Paste transform options broken into categories - Swap Y and Z Scale added (useful when dealing with Y-Z axis issues) - localRotation+90 added v1.2 [Nicolas Chicunque] - Edit Undo (ctrl + Z) options added - Changed MenuItem attribute - localRotation+90 added

Description
Allows you to copy the local position, rotation, and scale of the currently selected object in the scene. Then you can paste this transform information into another object. Useful for positioning new prefabs in the location of a different prefab if you want to swap them.

Usage
You must place the script in a folder named Editor in your project's Assets folder for it to work properly.

Select an object in the scene hierarchy, then click gear of Transform component and select Copy Independent Values. This copies the local position, rotation, and scale of the selected object. Then select another object and click gear of Transform component and select Paste (option). This will apply the copied transform to the new object. Both objects must either be at the root of the scene hierarchy or within the same parent for the transform to be applied properly.