Unity - JAVASCRIPT OR C#

javascript or c#
what should i learn??

1 Like

Unity is a native C+±based game engine. You write code in C#, JavaScript (UnityScript) or, less frequently, Boo. Your code, not the Unity engine code, runs on Mono or the Microsoft .NET Framework, which is Just-in-Time (JIT) compiled (except for iOS, which doesn’t allow JIT code and is compiled by Mono to native code using Ahead-of-Time [AOT] compilation).

Unity lets you test your game in the IDE without having to perform any kind of export or build. When you run code in Unity, you’re using Mono version 3.5, which has API compatibility roughly on par with that of the .NET Framework 3.5/CLR 2.0.

I have studied from here, you can find out the other details from here.

That completely did not answer the question.

You should just pick one and go with it. I personally like Js. As a side note, you should be aware that Unity doesn’t use “real” Javascript, if you choose that path, you have to use Typescript. An “easier” route would be to learn c# as you can use it “out-of-the-box” in Unity.

1 Like

I tried both here on codecademy. Javascript couse is better that c# course and i recommend it.
BTW i see c# is more popular for unity.

So many wrong answers here.

Unity doesn’t offer Javascript, it has Unity script, a JavaScript like language. Not the same thing

They also seem to get rid of it:

https://blogs.unity3d.com/2017/08/11/unityscripts-long-ride-off-into-the-sunset/

So the recommendation should be too learn C#.

THanks. That solves it!!

do i have to do java or c# which one is better

for unity? C#.

Otherwise, depends on many factors. You will have to provide more information.