I recently opened my game project and tried to place a new script on a Game Object. However it wouldn’t let me do this and said it needs to derive from monobehaviour and not assembly info. When in Visual studio it says miscellaneous file rather than C sharp assembly. I have tried changing my external editor to Visual studio and adding the exisitng file to the solution in visual studio but this did not work. This has happened to all scripts that worked before aswell. Can someone please help me find a solution
Look at your console. You have a bunch of errors you need to fix before Unity can even see your updated scripts. They mostly seem to be related to the fact that you have duplicate “PlayerMovement” scripts in your project.
1 Like