Jump to content
  • Advertisement
Sign in to follow this  
WulfTheWulf

Unity Best Language to use in the Unity Engine

This topic is 1919 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I decided to choose my Engine before choosing the Language, that way I would learn the best Language for the type of game I'm working on, in this case, I'm working on a town-like game that's supposed to have many players in it at one time, possibly up to 50, Also I need to be able to make Dynamic AI. So I'm just wondering which of the 3 Unity-Compatible Languages is the best to learn for my game? Boo, C#, or JavaScript?

Share this post


Link to post
Share on other sites
Advertisement

I decided to choose my Engine before choosing the Language, that way I would learn the best Language for the type of game I'm working on, in this case, I'm working on a town-like game that's supposed to have many players in it at one time, possibly up to 50, Also I need to be able to make Dynamic AI. So I'm just wondering which of the 3 Unity-Compatible Languages is the best to learn for my game? Boo, C#, or JavaScript?

It doesn't matter, also: strictly speaking its not JavaScript, its UnityScript (its based on JavaScript but there are a few differences).

All 3 languages get compiled to MSIL and then to native code by mono at runtime so performance should be reasonably similar(it is possible that mono does a better job at generating optimized MSIL code from one language or another but the engine really does most of the heavy lifting anyway), all 3 languages have full access to the engine and equal access to things like the .Net framework.

Personally i'd recommend going with C# or Boo since those are nice to know even if you don't use Unity.

Share this post


Link to post
Share on other sites

Other than the vague idea that it's similar to Python I don't really know anything about Boo, so I can't comment on it.

 

Choosing between C# and UnityScript -- noting the correction Simon already made, that it's similar but not identical to JavaScript -- I would personally prefer C# as a language and think it probably has more applications outside of Unity, but... JavaScript may be a better choice for Unity development; it's far more commonly used, there are many more examples to be found using it, and most of the user-created tutorials you'll find will use it.

 

 

You won't be strongly disadvantaged using any language however, so choose the language you personally prefer. smile.png

Share this post


Link to post
Share on other sites

It appears to me that the Unity team is beginning to default to C# over UnityScript.  This isn't the only thing I've seen, but for example the example project in the new learning section uses C# in the videos.  Sure, below the videos you can see the code in all 3 languages like the rest of the documentation, but the videos were done with C#.

 

I myself agree with the above posters that C# would be the better choice overall.  Like they said, as far as Unity goes there is no "real" difference between the three, but C# is more directly usable outside of Unity, and as far as I know the other 2 are not.  For example, I have seen that Unityscript has some things that Javascript does not have, and that could confuse you should you try using your newfound unityscript skills elsewhere.  Boo supposedly has some differences from Python too, though I'm not sure what they are.  But C# is pretty much the same.  The only difference(which is different in any case anyway, even with other game engines/APIs) is that you won't have access to Unity specific things when using C# outside of Unity.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!