- Home /
Is it the same javascript
i'm an experinced javascript programmer i have moded many web pages with and and used it alot. but i was wondering if all of the built in functionality of regular js is in unity's js too. for example what if i wanted to use the push() function on an array, could i still do that in unity or is it in a different library.
thanks for reading
Answer by Waz · Aug 07, 2011 at 02:00 PM
No, it's not the same. I don't know the history of why they stopped calling it UnityScript, or what the heritage is to J#. Some stuff carries over, but really it's a new language well-tuned for superior performance requirements (of 3D games). Imagine your web browser JS trying to execute thousands of lines of code at 60 FPS. UnityScript classes are far more static - like C++ or C# classes - rather than like JavaScript prototypes.
They never really started calling it UnityScript, it's always been "officially" called Javascript.
Your answer
Follow this Question
Related Questions
oescape script name? 1 Answer
Unity,How to make training Target Enemy 1 Answer
how to delay a object from moving 1 Answer