I would have liked to see this tutorial go a little further and illustrate some Unity3D game functionality written in both languages side by side.
this.channel
It was added with C# version 3.0, so if you've not used C# since 2008 (or had to stick with 2.5) then it's not something you'd have come across.
Basically, it just means the compiler uses the context to determine the type.
There's also the dynamic keyword, which means the type isn't determined until runtime.
Spudtion
while mostly negligible c# is indeed a lit bit faster, but mainly because it forces you with good practices, the only real improvement over js are delegates which don't exist in js, if you are starting now go with c#, if you already know js you may to stay with it a bit longer but i would advise you to start working with c#
kebrus
Javascript typing is not required. This more resembles Typescript.
mikesineath
Thanks for the guide! Hope to see more info on this, I m migrating from js to C#, but experienced lot of code structure different. Hope you could provide more sections on the differents between C# and js. Thanks again!
UnityDGameCreator
I have created Russian subtitles using Amara.org, but they have not appeared on YouTube. What should I do if I want them to appear on YouTube?
ЯрославЗинченко-цш
Hi, on 1:16 in the C# window isn't the return FunctionName(type parameterName) supposed to be type FunctionName(type parameterName)
avichalsingh
I'm learning JavaScript, to declare funtion I used:
var functionName = function(parameter : int) : int{};
It worked but do you recommend it?
moisesjp
C# is a lot faster. I know both but I much prefer C#
trenthogan
i started with javascript back in the day, and used it my whole time in Unity. Now I head that C# is the dominant language and javascript has gone the way of the dinosaurs. New language to learn now i guess
blendernoob
Wait, you can use the term "var" in c#? How did I never hear of this...
pcdmnsyr
I don't understand why the hell they use boo and not java, especially since android devices ARE java. I'm pretty sure much more people know java instead of boo
mayanphsyco
Hello! I wan't to ask, will you ever make a javascript tutorial? When i go to Unity website it is all C#.Even i am super noob and have no programming experience i do understand variables, a little functions, if statements and couple more of those stuff, so i don't really wan't to go and watch C# when i made some progress in Javascript...Official Javascript would be awesome so answer please..
MrKingx
What exactly is wrong with javascript? Isn't it easier not having to constantly say the datatype of every variable and function?
pcdmnsyr
So, if I'm starting now should I choose JavaScript?
MrAndrewrock
i got used to object oriented languages like java so for me C# is better, and more organized than javascript (since you have stuff from biggest to smallest)
cdjwmusic
I prefer JavaScript because it looks much cleaner and it's easier to read.
slader
1- in C# also exists the keyword var, u can type things like:
var x = 5;
var ball = new Ball();
2- using var is a bad habit, it makes your code less intuitive. What do u prefer: spend a little more time in your code by typing a larger and intuitiver variable name and later, when u reuse that code its beautifull; or use something like var, that will save you the time of typing a couple more letters.
3- Just kidding, bro, just trying to piss java scripters off xD
dalanxd
To the Unity Team*
Which do you prefer to use?
mikey
Java or JavaScript? either way it is defiantly not they best programming or scripting language out there.