- Home /
No MonoBehaviour scripts in the file(Unity 2019.2)
So I just created a new project on Unity 2019 and when i created my first script it shows:- "No MonoBehaviour scripts in the file , or their names do not match the file name" It has been a problem persistent in the 2019 version for me and I cannot find any fix for it. I tried:- 1. Uninstalling and reinstalling Unity 2. Deleting the projects and creating fresh ones and many more Could someone suggest some solution for this
I also have the snaps of the problem
I have the same issue. I keep seeing posts about this and to verify the names (in your case 'Hello') all match, which they do. I created a Scripts folder, then created a C# script inside that folder and, without editing anything, the error appeared.
Is anyone monitoring this forum? Can anyone provide an answer?
Answer by Kaart · Sep 25, 2020 at 08:11 PM
Delete line 8 in your script. It just says "update". It's between the lines "// Start is called before the first frame" and " void Start()"
// Start is called before the first frame
update < DELETE THIS
void Start()