if(GUI.Button(new Rect(Screen.width * 0.4f,Screen.height * 0.01f,
Screen.width * 0.08f,Screen.height * 0.045f),
“Paint”,GUI.skin.GetStyle(“Paint”)))
{
}
this is not working for me…
so i have to use following solution.
function OnGUI ()
{
GUI.Button (Rect (10, 10, 100, 20), "Hello Button!");
GUI.Label (Rect (10, 10, 100, 20), "Hello Text!");
}
can any one help me…
If you don’t assign your own skin to GUI.skin, then it will be the default one. The default one doesn’t have a style “Paint”.
Hey I Found Solution for this one…
I have used Unity UI method to display Image and text both at the same time…