3 ms·
Unity's "Javascript" is, AFAIK, more aptly named "UnityScript".[0] [0]: http://wiki.unity3d.com/index.php?title=UnityScript_versus_JavaScript http://wiki.unity
by doyoulikeworms 13y ago
Unity's "Javascript" is, AFAIK, more aptly named "UnityScript".[0]
[0]: http://wiki.unity3d.com/index.php?title=UnityScript_versus_JavaScript http://wiki.unity3d.com/index.php?title=UnityScript_versus_J...
- DonHopkins 13y agoGood point. Please see my comment about "Unityify"! https://news.ycombinator.com/item?id=7613488 https://news.ycombinator.com/item?id=7613488 Since I haven't written much "UnityScript" code myself, I'd appreciate your comments about whether you think it's possible (or worth the effort) for a tool like Browserify/Unityify to translate JavaScript code so it runs in Unity3D, or for programmers to write portable modules in a dialect of JavaScript that will run in both. Maybe Unity3D themselves could help, by fixing problems with UnityScript that make it hard to run standard JavaScript, and providing hooks in their compiler pipeline that enable passing JavaScript libraries through with minimal modification when you're targeting the web browser and WebGL.