4 ms·
barrier for entry into Unity is still unmatched. C#/Javascript vs C++/Lua Lua is easier than C++ but is still, I don't know, quirky, to me.
by legohead 13y ago
barrier for entry into Unity is still unmatched.
C#/Javascript vs C++/Lua
Lua is easier than C++ but is still, I don't know, quirky, to me.
- doyoulikeworms 13y agoUnity'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.
- teamonkey 13y agoI would argue that Lua is way easier/smaller/neater than C#, but both CryEngine and Unreal have visual flow-based scripting systems, which are significantly easier for a novice than scripting. In CryEngine their FlowGraph is basically a way of connecting predefined C++ and Lua code boxes. Blueprint in Unreal takes things to extremes and basically exposes almost the entire C++ API to the scripter.
- Tloewald 13y agoVisual programming tools always seem to end up being troublesome. How hard is it to do non shooters in UDK?
- notastartup 13y agoI'm not sure based on the screenshots and demos but it seems very intuitive, and it's actually one of the main reason I want to get started with UDK. I know C++ is gonna be a challenge but Lua pretty much looks like python, which is a huge win over UnityScript which is like Javascript. It's funny because I was looking to see if I could use Unity with a python like language and Lua seems bang on the spot. More reason to learn Lua as an excuse to use some thing like Lapis, a Lua framework for Nginx OpenResty which lets you write apps directly on Nginx. http://leafo.net/lapis/ http://leafo.net/lapis/
- atrilumen 13y agoUnder the syntactical surface, Lua is really more like Javascript than Python. Unity has support for Boo, which is just a Python-like front end for the CLR. I'm pretty fond of it, myself. I prefer to use it whenever I can, inside Unity and elsewhere. The docs could use a lot of love, but it's still very easy to learn and extremely productive and a joy to write. I rarely touch MonoDevelop / Xamarin Studio; I write Boo in Sublime Text, and find it very satisfying. Another path I've been tempted to explore is to use Moonscript with Gameplay3D, but Unity is hard to leave. I could be wrong, but I have the impression that Unreal is too unwieldy for a solo developer, which is how I plan to stay for the foreseeable future.
- teamonkey 13y agoTo be clear, Lua is used in CryEngine, not Unreal4/UDK. Unreal3 had UnrealScript + Kismet. Unreal4 has Blueprint, which is Kismet taken to extremes, but UnrealScript is no more. And it's already been said, but in Unity you can use Boo, which is very similar to Python.
- teamonkey 13y agoUnreal4 seems way more flexible in this regard than previous versions of the engine, but I haven't played about with it enough to be sure. In any case, the limitation was never down to the scripting method, more the way that the engine was designed and what it specialises in. Remember that full licence holders had the C++ source.