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)

🌚 Life is too short to browse without dark mode