Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2008
    Posts
    8

    problem 2D space tutorial?

    after this cade is enterd on the video the gui shows on screen any ideas have i missed somthing?

    void OnGui()
    {
    GUI.Label(new Rect(10, 10, 60, 20), "Score: " + Player.Score.ToString());
    GUI.Label(new Rect(10, 10, 60, 20), "Lives: " + Player.Lives.ToString());
    }

  2. #2
    Join Date
    Dec 2009
    Location
    United Kingdom
    Posts
    60
    Try changing OnGui() to OnGUI()

  3. #3
    Join Date
    Nov 2008
    Posts
    8
    problem fixed was because "void OnGui()" needed to be "void OnGUI()" just incase anyone miss spells it :/

  4. #4
    Join Date
    Nov 2008
    Posts
    8
    lol cheers just fixed it

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •