Assets in package overwriting files they shouldn't (423599)

Hi all,

Hopefully a simple answer to this. Say I have Unity project A that contains ScriptA. I then use that script in Unity Project B, modify it and rename it ScriptB. When I export the assets in Project B as a package and try to import them back into Project A, Unity wants to overwrite Script A with script B even though I have made many changes to the file and changed the name. How can I break the connection to the original file so ScriptB is added to Project A?

Thanks in advance

Create a new js file, copy paste all the content ?

ok obviously not ideal but I’ll try it!

Thanks :slight_smile:

ok that worked, which is nice to have a workaround - thanks.

does anyone have a more elegant solution? The problems with the current workaround are:

a) it is difficult to know which files unity will want to add or replace without going through the whole export/import package first.
b) when you create a new script you have to reapply it to all the game objects that utilise the original script.

All the best

Just came across this too - wish there was a better workaround. Anyone?