- Home /
About iOS Javascript
Hi everyone , im making a game for android and ios but there is have a javascript code in my game. some people said ios is not supporting javascript can someone explain it ?
Some people are talking nonsense. Just be sure to use #pragma strict
at the top of your javascript code and you'll be fine. :)
And lets stop calling it javascript and call it UnityScript :D
And yeap, it's perfectly fine with iOS.
Answer by rutter · Sep 09, 2014 at 08:57 PM
The main caveat with UnityScript on iOS is that you really need to use #pragma strict
at the top of your files. That's included by default, now, but that wasn't always the case.
Actually it's enforced by default on iOS, so regardless of whether you have #pragma strict
in your scripts or not, it behaves that way anyway.
Answer by Jim_Zee_King · Sep 09, 2014 at 08:47 PM
Hi, maybe i am wrong, but i imagine Unity does the conversion to native code when building your app, so i don't think you have to worry about this.
It should work.
I maybe wrong though, i am a newbie with Unity
Your answer
Follow this Question
Related Questions
Smooth Follow 2D works but Null Reference Error Remains 1 Answer
touch position 2 Answers
Help converting javascript to ios iphone scripting 2 Answers
Detecting Multiple Touches on same frame IOS 2 Answers
Game Runs Horribly Slow On iPad? 3 Answers