Unity 5 / can't use GUI.backgroundColor

Hey!

I upgraded my Unity-Version some weeks ago. And I got to something weired.

Usually I could use the simple GUI. functions, but now I’m just able to use GUILayout. functions.

I inclued using UnityEngine.UI; , but there that seems not to be all at all.

I hope u can help me here! Thanks!

I can’t test it here right now, but something you could use is a GUISkin.

Create a GUISkin on your editor, then create a variable on your code:

public GUISkin skin;

Then on the OnGUI function, you could do something like this: (C#)

void OnGUI()
{
    GUI.skin = skin;
}

In the GUISkin you can set every color, size, font, etc.
Hope it helps.