I’m a newbie in javascript scripting and everytime i meet #pragma strict syntax i probably got confused. What’s that meaning? Why there are some scripts that doesn’t use that syntax?
Thanks!
From what I’ve seen #pragma strict just makes it so you have to be more careful about naming variables it makes it harder for you to accidentally write something that would cause an error that the compiler won’t catch. If you use it (which you probably should) You’ll have to fully declare variables and not leave room for the compiler to guess what you mean.
Keep in mind I’m pretty new too so I’m not entirely sure either, if any one more knowledgeable about the subject sees this feel free to crap all over my answer and write something better.