Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Most of the tutorials uses JS?: Is it true?

Discussion in 'Scripting' started by Sarah-Lupo, Oct 10, 2013.

  1. Sarah-Lupo

    Sarah-Lupo

    Joined:
    Sep 28, 2013
    Posts:
    10
    Fact:

    I'm a web designer so I already know JS (yep, I know that Unity uses UnityScript...). But I'd like to learn C# for personal purpose and I' d like to kill two birds with a stone learning at the same time C# and Unity.

    But there is one thing that stops me: I read around that most of the official tutorials uses JS, not C#. Is it true? (there's a ton of documentation, so I haven't personally checked)

    Thank u in advance
     
  2. Deleted User

    Deleted User

    Guest

    It's true. A lot of people coming into Unity are for the most part, people who haven't coded before or who have come in with very little experience... and since the general idea is that UnityScript is easier to learn... well, you can see the train of thought.

    There are some great tutorials out there that use C# - I ran across a series today on YouTube by searching with the C# tag after what I was looking for, Unity tutorial wise.
     
  3. fire7side

    fire7side

    Joined:
    Oct 15, 2012
    Posts:
    1,819
    If you know js, just pick up a c# book, or some c# tutorials on the net, and go through them. Then just convert the js scripts, or some of them, for practice. There is very little difference because in the early part of the tutorials you are just calling Unity functions.
     
  4. tibor698

    tibor698

    Joined:
    Nov 26, 2012
    Posts:
    84
    Unity documentation provides examples in JavaScript and C#, and Boo I think. Maybe some third party tutorials use more JavaScript, but C# isn't at all that hard.
    For some simple stuff you can start right away with C#, and probably is a little faster too.
     
  5. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    this. There's a dropdown in the upper left of the documentation that lets you switch between languages. There are also tons of C# tutorials out there for it and converting between the two is really pretty easy if you understand the basics of C#.
     
  6. chelnok

    chelnok

    Joined:
    Jul 2, 2012
    Posts:
    680
  7. JamesLeeNZ

    JamesLeeNZ

    Joined:
    Nov 15, 2011
    Posts:
    5,616
    The differences between JS/C# are trivial in Unity.
     
  8. christinanorwood

    christinanorwood

    Joined:
    Aug 9, 2013
    Posts:
    402
    There are a few gotchas translating from JS to C# - mostly relating to type casting. C# is a stricter language with types. If you have some money I suggest the Scripting in C# for Unity tutorials on 3DMotive. I've just finished them and they really help out with the types problem.
     
  9. Sarah-Lupo

    Sarah-Lupo

    Joined:
    Sep 28, 2013
    Posts:
    10
    Thank u all...

    Well, I think i'm going to learn C#, Unity or not ;)

    Thank u again, this forum rocks :cool:
     
  10. Deleted User

    Deleted User

    Guest

    Oh - nice call on that site, I haven't seen that before and it'll be a good refresher.