OnGUI will not show up?

OnGui won’t show up when I start the game for some reason. I’ve attached the script to a gameobject:

void OnGui()
{

    GUI.Label(new Rect(-3, 1, 300, 300), "Username");
    user = GUI.TextField(new Rect(10, 10, 100, 100), user);

    if (GUILayout.Button("OK"))
    {
        WWWForm form = new WWWForm();
        form.AddField("", user);
        WWW w = new WWW("http://mywebsite.com/register.php", form);
        StartCoroutine(register(w));
    }

}

Thanks

Unity looks for a function named OnGUI, but yours is OnGui, which won’t match. Capitalization counts!

Other than that, make sure that the script is attached and active somewhere in the scene you’re playing.