9

I'm learning JavaScript and C# which is best when using unity? Does it matter?

Comments
  • 4
    Welcome to DevRant! I've been here about 20 minutes :)

    I have started tinkering with Unity recently and I've been using C#, but that's because I have a background in C#.

    I think it comes down to personal preference, but I find a lot of tutorials are done in javascript, if that helps.
  • 3
    If you do decide to go the C# route, I found a pretty good Tower Defense tutorial in C# that I can recommend (a ton of YouTube videos in it, about 12 hours and he's not finished it yet).

    I watched it all before trying anything myself in Unity and feel like it made me fairly competent on how things hang together (having UI scaling issues at the moment, though!)
  • 2
    😀 its what you prefer, i prefer c# because i find easier to use and its also what i learnt, but if u look at older tutorials for unity they are mostly done in JavaScript but ive noticed the newer ones are done in c#, even if you dont know one or the other you can easily convert between both languages as long you understand the unity API.
  • 1
    I've been trying to learn the same. I also saw a TD tutorial, but it might have been different. This guy built a basic game in an hour.
  • 2
    Unity dev here. 100% C# all the way.

    1.) If you build your games for iOS or Android the C# tends to translate friendlier in IL2CPP.

    2.) C# experience will serve you well in future gigs (though JavaScript will too, differently).

    3.) It's a rewarding language to think in, like Java.

    If you find monodevelop hard to use check out Rider, the free (prereleased) editor by JetBrains.
  • 1
    Btw for Unity is both the same. C# or JavaScript is translated to bytecode of unity, its just your personal preff
    erence. But i prefer C# bcs is closer to Java, to my mastred language and its not shitty xD
  • 1
    Thanks people. So what I can gather is C# is the more current way and the one people are using now? Whereas JavaScript still works but is dated abit?
Add Comment