each time I want to create a new script and want to add it to a component it always say
“No Monobehavior scripts in the file, or their names don’t match the files name.”
file name and class name are the same
I had a script that was working fine but then after I restarted my unity it now has this message also
I cant find why
Make sure you’ve resolved any errors in the console.