First of all, big thanks to everyone trying to help me; its very much appreciated.
@ Ezzerland, Emil already commented your solution, and indeed it did not seem to work.
@ Emil, I stripped the code to the minimum to have a better overview. I’m pretty confident that I’m missing the point of what you were saying.
I tried different variants of what you where proposing; the last attempt gave me the following error:
Assets/TestScripts/BK 1.js(48,43): BCE0023: No appropriate version of ‘UnityEngine.GUIStyle.Draw’ for the argument list ‘(System.Type, boolean, boolean, boolean, boolean)’ was found.
So here is the code I was trying out.
Thanks again,
Regards, Robert.
function OnGUI () {
if (GUI.Button (Rect (30,40,20,80), "")) {
}
if (GUI.Button (Rect (60,40,20,80), "")) {
}
if (GUI.Button (Rect (120,40,20,80), "")) {
}
if (GUI.Button (Rect (150,40,20,80), "")) {
}
if (GUI.Button (Rect (180,40,20,80), "")) {
}
if (GUI.Button (Rect (10,50,30,130), "")) {
}
if (GUI.Button (Rect (40,50,30,130), "")) {
}
if (GUI.Button (Rect (70,50,30,130), "")) {
}
if (GUI.Button (Rect (100,50,30,130), "")) {
}
if (GUI.Button (Rect (130,50,30,130), "" )){
}
if (GUI.Button (Rect (160,50,30,130), "")) {
}
if (GUI.Button (Rect (190,50,30,130), "")) {
}
if (GUI.Button (Rect (220,50,30,130), "")) {
}
//GUI.skin.GetStyle ("Button").Draw (Rect, false, false, false, false);
//GUI.skin.GetStyle ("Button").Draw (Rect( false, false, false, false));
GUI.skin.GetStyle ("Button").Draw (Rect, false, false, false, false);
}