Compilation Strange Problem
Hello. I have run into a strange problem. Everything was working fine yesterday, today I started my unity project and started getting a nullReferenceException. I debugged it and saw that one of my scripts was showing "The associated script cannot be loaded. Please fix any compile errors and assign a valid script".
According to my knowledge if this happens code should not compile and console should show the error at the specific line of code but none of this happens. There is no error on console and project is compiling and running but shows nullReferenceException where reference of this script is used.
This is totally beyond me that how can this happen? I deleted library folder, reinstalled Unity, reimported everything but still this error remains.
Did you rename the class inside the script? I mean, does the script class name match the script filename?
Yes it does. Actually, its not my own script. Its one of the Unity Packages I purchased from Asset Store. I have also emailed its developer.
Has anyone else run into the same problem using this Asset? Could you give us a link?