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…