How do I get text to appear on-screen, like a scoring system?

This was the solution I found online that seems intuitive enough; however, it doesn’t work. Nothing happens.

GUI.Label(Rect(0,0,Screen.width,Screen.height),“Here is a block of text\nlalalala\nanother line\nI could do this all day!”);

It doesn’t matter if I change the bounds, change the text, nothing. Should I be displaying the window differently? Do I have to declare the GUI first or something?

Are you calling this from with in the OnGUI function?

1 Like

as Novashot said, this will work from when called within an OnGUI() function.
also you will have to create a new rect to declare. just tested the following

    void OnGUI()
    {
        GUI.Label(new Rect(0,0,Screen.width,Screen.height),"Here is a block of text\nlalalala\nanother line\nI could do this all day!");
    }