Hi there i’m getting this error 3 times in this code but not sure why. I get two of type 8 and one type 7 (no idea what that means but it might be helpful)
Here’s the code. I hope one of you fine gents can help me.
var scrollPosition : Vector2 = Vector2.zero;
function OnGUI () {
scrollPosition = GUI.BeginScrollView (Rect (25,40,180,200),
scrollPosition, Rect (25, 0, 150, 1000));
if (GUI.Button (Rect (30,0,150,30), "Ben Davis")) {
Application.LoadLevel (2);
}
if (GUI.Button (Rect (30,40,150,30), "Dale Clarke")) {
Application.LoadLevel (2);
}
if (GUI.Button (Rect (30,80,150,30), "Henry Vaughan")) {
Application.LoadLevel (2);
}
if (GUI.Button (Rect (30,120,150,30), "Joshua Kerr")) {
Application.LoadLevel (3);
}
if (GUI.Button (Rect (30,160,150,30), "Laurie Mcarthur")) {
Application.LoadLevel (2);
}
if (GUI.Button (Rect (30,2000,150,30), "Mark Oakley")) {
Application.LoadLevel (2);
GUI.EndScrollView ();
}
}