You are trying to replace or create a Prefab from the instance 'Destroy_Arch_0 (10)' that references a missing script.This is not allowed

that error appeared suddenly when I was using unity, anyone got any idea what it is??

Seems like the prefab or GameObject referred to has a Script component attached, but Unity cannot find the actual script file that is mentioned in the Script component.

Can you check the following:

  • Open the ‘Destroy_Arch_0 (10)’ GameObject in the Inspector.
  • Find the Script component attached to the object
  • Click on the script file name in the Script component to see if Unity can locate it in your Assets. If not, then that missing script file is causing the error.

It would be really, really helpful if Unity thought to mention which script was missing from which object. ,It would be really, really helpful if Unity thought to mentioned which script was missing from which object.

this did not help me as a begginer

There was another script that I had not bothered to fix.
Once there were no errors in the console, it allowed me to create the Prefab

I Remove the component and Re Added it it fixed for me

Could someone explain why it’s not “Allowed”?

In Unity 5 it was perfectly fine to leave missing script reference, and prefabs could be moved to antoher project and back and the reference were still in-tact.

But now it’s not allowed and the reference must be removed? Is there any logic why this is enforced now?