Can't add script component because the script class cannot be found. Error related to SmoothMoves folders.
My question is, what is the relation of SmoothMoves with this error?? Read details below: This is really really strange. I have been getting this error for a while now and have been at it for 4 days, if you count today. After trying over and over and over for a solution (read this for details), the strangest, oddest and weirdest thing that happened was that I went and deleted the SmoothMoves related folders. I have assets in my project- a number of characters that I bought from nGarden, that are using SmoothMoves animation component for its animations. Since I had 4 types of assets separately bought on the Store, I had managed to gather all the prefabs and animations in single folders. However, I did not understand and did not know what to do with the folders that contained the SmoothMoves components, so I copied all of their number of copies in my MainGameAssets/Characters Folder, where I have all other characters too. Later, I got this error over and over and over and no matter what I tried, how many times I reimported the project, restarted Unity, recreated the script - even using different names - the error refused to resolve. The error in the question. The one that does not let you add a script to a game object.
Can't add script component 'FileName' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match.
Now that the details are through. Here's the main point: I deleted the SmoothMoves folders. Every single one of them - there were 3 - and this error resolved magically. After four days of fretting and getting agitated, losing my appetite, this is the SURPRISE ELEMENT that resolves this problem.