GUI is not displaying on screen. (Beginner)

Hi,
I am new to unity and would like to know 2 things.

  1. Where can I find a series of tutorials that will help me strengthen my basics?
  2. I am trying to display a GUI on screen but it is not happening
    dont I have rect and GUI API’s ? If so how do I install them?

the code is

using UnityEngine;

using System.Collections;

public class NewBehaviourScript : MonoBehaviour {

    
    public int maxHealth=100;

    public int currHealth=100;

    void Start () {
    }
    void Update () {
}

    void onGUI()

    {
    GUI.Box(new Rect(10,10,Screen.width/2,20),currHealth + "/" + maxHealth);    
    }

}

there is no error… just no display…
should I use a texture?
i also dragged it to the first person controller! no use!

thanks in advance :slight_smile:

  1. You can find tutorials here.
  2. The “O” in OnGUI is uppercase.

if the GUI is in the hierarchy view then double click it (it will zoom in on a space). Select the “Move” tool and keep moving it around until if is on the screen.