- Home /
Unity Multipurpose Avatar Error: "Can't add script behaviour AssemblyInfo. The script needs to derive from MonoBehaviour!"
Regarding both the latest git and asset store versions of Unity Multipurpose Avatar and the latest non-beta version of Unity.
Trying to add the Dynamic Character Avatar script to an empty object in a new project, but the unity editor reports the error "Can't add script behaviour AssemblyInfo. The script needs to derive from MonoBehaviour!" and fails to add the script.
If I use a prefab already installed with the script, I get "The associated script can not be loaded. Please fix any compile errors and assign a valid script." and when I try to run the game in editor I get "All compiler errors have to be fixed before you can enter playmode!"
What do?
Answer by SeeSt · Jan 23, 2019 at 05:45 AM
Same problem here! @northerntempest you found a solution yet? Thanks in advance!
Answer by seneca_the_younger · Nov 09, 2020 at 07:39 PM
Same issue. After my computer crashed while unity was open, NONE of my projects worked any longer. Every scripts I tried to add would display the AssemblyInfo.cs error and ALL of my prefabs said they had missing scripts. What I did was read through the errors on the console specifically, and fix those specific files.
I had to fix the broken script in the red error of each project. Look at your console log for details and specifically address the issue displayed their. Once i did that, everything worked again.
Your answer
![](https://koobas.hobune.stream/wayback/20220612185753im_/https://answers.unity.com/themes/thub/images/avi.jpg)