how to copy/paste values from a component to other component?

Hi,

I have 2 scripts A.cs and B.cs having the same public variables (so the same fields)
I assume I filled in the fields of script A.
I can’t copy the values of the fields from A to paste them into the component of the script B.
Can you help me?

thanks

Right-click on the A.cs script in the editor and select “Copy component”. Then right click B.cs in your editor and select “Paste Component”