In Gameobject A, when I do a component copy under Inspector → Transform component → Cogwheel → Copy component, the position, rotation and scales values are copied and when I paste the component values to another gameobject B, the position, rotation and scale values are copied over. However, I do not want to replace the rotation and scale values in gameobject B with the values from gameobject A, only the position values.
Is it possible to copy only the position values of gameobject A ?
Click on the wheel on the right of the transform component and there should be a “copy component” option ; select it. Then select the new game object, click on the wheel on the right of the transform and select “paste position”.
You might find useful to follow the tutorials here to learn about how to use Unity:
I don’t have the “paste position” option under the wheel. (Was hoping there is such an option). What I have under the wheel is :
Reset
Move to Front
Move to Back
Copy Component
Paste Component as New
Paste Component Values (this is the option I chose and it copies everything including rotation and scale)
Reset Position
Reset Rotation
Reset Scale
It has it now! just click RMB on property name like: ‘Position’ select ‘Copy’ and select other object click RMB on ‘Position’ and ‘Paste’. BTW it can copy any property