What is the function of these #pragma commands?
#pragma strict
#pragma implicit
#pragma downcast
What do each of them do? And is there any other #pragma commands?
What is the function of these #pragma commands?
#pragma strict
#pragma implicit
#pragma downcast
What do each of them do? And is there any other #pragma commands?
Using "#pragma strict" at the top of a script will disable dynamic typing in that script. UnityScript strict mode no longer allows arbitrary downcasts from Object (unless #pragma downcast is used).(unity 3) downcast and implicit are for backwards compatibility in unity 3.