so i learned how to use js. i used a online school for it (it was js only). now i want to switch to c#. can some one help me? where can i learn c# the best?
Well for the pure C# basics you can heck out Quill18’s series from my description. It’s a pretty good series to watch (he also has complete Unity focused series).
You can also just go through the learning section of Unity itself, as their sources are also all in C#.
1 Like
JavaScript for Unity (ie UnityScript), or real JavaScript?
Real JavaScript won’t help you much in Unity, except in the vague nebulous way that knowing one language helps you lear another.
UnityScript will help you. The basic differences are as follows:
- You always need to explicitly declare a class, and that it inherits from MonoBehavour.
- You must always type a variable
- Variable declarations in C# are backwards to UnityScript. public var name : type; will become public type name;
- You must call StartCoroutine to start a coroutine.
- Some other minor syntactic sugar I’ve forgotten.
i learned the basic of javascript. then when i started using unity i used “unityscript”
thanks i will look at those asap
Alternatively if you want a text-based learning resource for pure C# basics there is the free C# Yellow Book.
2 Likes