Which version of Javascript?

Hi,

Does anybody know which version of teh Javascript is upported in Unity?

tomcat

“Javascript” in Unity is not actually javascript, it’s a .NET language with javascript-like syntax. As such it doesn’t directly correlate with any specific version of javascript (which is also why you’ll often see it referred to on these forums as UnityScript, to avoid confusion).

Ok, that explains it. Could you point me to the user manual for it?

tomcat

Help - Script Documentation in your unity editor is where you find the scripting related documentation

there is no language documentation itself and likely not required.
The syntax is JS like, but the functionality is .NET

Ok, Thanks. I,ll be more specific. in JS you dont declare variables like this:

var aPosition : Vector3;

Where can I find this type of information?

tomcat

http://unity3d.com/support/documentation/ScriptReference/index.Member_Variables_26_Global_Variables.html

Thanks :slight_smile:

tomcat