Is there any difference between JavaScript and Unity JavaScript (UnityScript)?

I'm going to start scripting in Unity3D pretty soon for developing a game using UnityScript (since I am starting). If I had experience with JavaScript (which I don’t have), would I find UnityScript differently? If so, what is the difference between these two scripting languages?

+4
source share
1 answer

This sums up in the tag wiki here: fooobar.com/questions/tagged / ...

The main differences:

  • UnityScript has classes, JS has no concept of classes (yet)
  • UnityScript file name automatically puts code in a class with the same name (minus extension)
  • UnityScript
  • UnityScript this (aka self)

, JS US: http://wiki.unity3d.com/index.php/UnityScript_versus_JavaScript

+6

All Articles