What form of Java script is being used in Unity 2.5

Hi

I am using Java Script, where I have developed classes and virtual member functions to my good surprise since I have never seen any virtual member functions and class declaration documentation in any Java Script manual.

What form of Java Script is Unity using ? I am working with Unity pro version 2.5 Are there any links or books that I can reference for this nice object oriented way Unity allows java scripting?

Thanks

Unity uses a non-standard version of JavaScript, indeed you’ll sometimes see it referred to as UnityScript on the forum. It is mostly the same as all the other JavaScripts, but there are some important differences.

There isn’t a chapter on the syntax in the main docs, but there is a wiki entry about it.

When using unity javascript, also keep in mind that the primary documentation aside of the unity one is the microsoft MSDN as you work with .NET, not with the “JS DOM” functionality