DEV Community

Aishanii
Aishanii

Posted on

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

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.

Top comments (0)