Search Unity

js and Unity n00b question

Discussion in 'Scripting' started by andyH, Mar 4, 2010.

  1. andyH

    andyH

    Joined:
    Mar 2, 2010
    Posts:
    31
    Hi everyone, I am a complete and utter n00b and I am trying to go through the Unity scripting tutorial...

    http://forum.unity3d.com/viewtopic.php?t=36096

    My problem is so simple, and I am a tad embarassed to be asking but when I create a js script asset how on earth do I run it and test the output?

    The script is simple enough,

    function Update () {
    var applePie = Array("apple", "brown sugar", "butter", "pie crust");
    var item1 = applePie[0];
    Debug.Log(item1);
    }

    but where is the output so I can see what the Debug.Log result is?

    sorry for being such a n00b :(

    some handholding would be much appreciated...
     
  2. ESB

    ESB

    Joined:
    Mar 2, 2010
    Posts:
    71
    To see Debug.Log() output, open the console window (Window->Console).
     
  3. andyH

    andyH

    Joined:
    Mar 2, 2010
    Posts:
    31
    many thanks...
     
  4. Mirage

    Mirage

    Joined:
    Jan 13, 2010
    Posts:
    230
    You probably already know this, but at the bottom of the Unity window there is a small rectangular bar. This also displays output, you can double click it to open the debug.log.