Is C# or javascript easier to understand?
Im newer to unity and when i start to create a script there is a box where i can choose what language to use. is one easier to understand than the other? Im using unity 5.5 does that make a difference?
Answer by hexagonius · Jan 22, 2017 at 06:23 PM
They're equal enough to say they are equally good understandable. But that's not the point anymore, C# is the language of choice, because it's the primary supported one. it's also a complete language where Unity's version of JavaScript (UnityScript) is a special one for the engine. so you'd have to relearn that language a bit when using JavaScript in some other context where C# stays the same
Answer by UnityCoach · Jan 22, 2017 at 07:40 PM
C# takes more code than JS to write something simple, while JS takes more code than C# to write something complex. Also, C# offers access to the whole .net stuff, while JS is limited. You can mix them, but in some cases will end up with some issues, as one is compiled before the other. Now, as @hexagonius said, C# is the language of choice.
Your answer
Follow this Question
Related Questions
Do we still need to avoid foreach loops? 3 Answers
Need a Script for Changing Scenes after pressing E to open locked door once a key has been found. 0 Answers
unity 5.6.1 run js but not c# 0 Answers
JavaScript to C# 1 Answer
Forge-like in game editor 0 Answers