Search Unity

Do you need to learn JavaScript?

Discussion in 'Scripting' started by crockett, Apr 30, 2008.

  1. crockett

    crockett

    Joined:
    Apr 11, 2008
    Posts:
    264
    I'm starting to learn JavaScript for use with unity and I hate learning from books. I found these videos from Yahoo and they are pretty good.

    Douglas Crockford: "The JavaScript Programming Language"

    Part 1
    http://au.video.yahoo.com/watch/111593/1710507

    Part 2
    http://au.video.yahoo.com/watch/111594/1710553

    Part 3
    http://au.video.yahoo.com/watch/111595/1710607

    Part 4
    http://au.video.yahoo.com/watch/111596/1710658

    You can also find other videos in the related sections. I figured I'd share these as I'm sure others are trying to learn it as well.
     
  2. JavaChilly

    JavaChilly

    Joined:
    Mar 8, 2008
    Posts:
    33
    Be warned, Unity's javascript is not true javascript as you'll find reference for across the web. The syntax and semantics of the language are almost exactly identical, but you're dealing with a set of objects provided by Unity and the Mono Project.

    For instance, theres no alert(), instead, there is Debug.Log(). An extremely large part of any javascript reference is really focusing on the language's usage in web pages, which don't apply in Unity itself.

    Just giving you a heads up. :)
     
  3. Bones3D

    Bones3D

    Joined:
    Apr 28, 2008
    Posts:
    314
    If you're not into huge books, you might consider at least picking up a copy of the JavaScript Pocket Reference from O'Reilly. Unlike it's parent book, the JavaScript Definitive Guide, the Pocket Reference is just enough to remind you about the most commonly used features of the language and the proper syntax for calling upon them when needed.

    Now if only we could get a proper printed manual for Unity...
     
  4. crockett

    crockett

    Joined:
    Apr 11, 2008
    Posts:
    264
    Ok thanks 4 the heads up I'll have to check it out some more.

    Bones3D I'll check that out. Thanks for the replies.