DEV Community

loading...

Can't add script component because the script class cannot be found

Aishanii
I read tech stuff and may give my 2 cents💁‍♀️
・1 min read

Alt Text
Try these:

1. Check if the name of the file is same as the class name or not. The class that associates with Monobehaviour must be same as the file name.

2. Check for any errors in your script

3. Bad import. In that case just right click your mouse in the project folders section and select Reimport All option.

Discussion (0)