- Home /
Question by
Mattivc · Aug 21, 2010 at 03:48 PM ·
javascriptjavascript-specificpragma
What is the function of the #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?
Comment
Best Answer
Answer by AliAzin · Aug 21, 2010 at 04:44 PM
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.
Your answer
Follow this Question
Related Questions
Instantiate cloned prefab to local position of an empty object 1 Answer
JavaScript error BCE0005 0 Answers
OnMouseOver parenting problem 0 Answers
Javascript - List 4 Answers
Can someone help me fix my Javascript for Flickering Light? 6 Answers