- Home /
UnityScript vs C#
Hi,
Currently I am developing in UnityScript, but in the wiki I can see quite many code in C# too.
So, could you tell me what language is more appropiate for each porpouse? Should I use UnityScript as main language or I should switch to C#?
Many thanks in advance,
Answer by Cyb3rManiak · Apr 27, 2011 at 09:40 AM
There are several discussions about this issue on the forum. You might want to try searching for it there for more in-depth discussions. For starters check out Tom's thread about scripting.
At the end it comes down to what is more comfortable for you. Performance wise - if there is a difference, it's not that important. What's important is what language you're used to, and what workflow/dev environment/other tools you rather use. For example - I hate to think I need to stop using Visual Studio. But if I need to tweak some UnityScript file, I will probably switch to MonoDevelop or UniSciTE, which is not ideal but necessary to get auto-completion and stuff like that.
UnityScript is more forgiving and will let you get away with more and be more limber while you develop.
C# on the other hand is a pain at first (and much less forgiving), especially if you're coming from ActionScript or JavaScript programing, but it will allow you to leverage generics and other features that are not available from UnityScript.
I don't think there's a wrong choice here.
Your answer
Follow this Question
Related Questions
How should I decide if I should use C#, JavaScript (UnityScript) or Boo for my project? 14 Answers
how to detect keyboard language? 2 Answers
What are the Syntax Differences in C# and Javascript? 7 Answers
Script translation 2 Answers
What does one language have over the other? (functionality) 2 Answers