Create a text file in the root of your project's Assets folder:
Code:
Your Project/Assets/us.rsp
With the following:
Code:
-pragmas:strict,downcast
Voila! No more implicit variable declaration bugs without needing to #pragma every script.
Note that this includes the Editor/ compilation pass; if you play fast and loose with dynamic typing in editor scripts this may create more hassle than it resolves.
Thanks to Rodrigo for the tip!

Reply With Quote
"
