Hi,
how can i use array as text on GUI button?
GUI buttons like that
if
(GUI.Button(Rect(Screen.width/4,Screen.height/8,Screen.width/2,Screen.height/8), a[0] )) {
Application.LoadLevel (1);
}
doesn’t work.
Hi,
how can i use array as text on GUI button?
GUI buttons like that
if
(GUI.Button(Rect(Screen.width/4,Screen.height/8,Screen.width/2,Screen.height/8), a[0] )) {
Application.LoadLevel (1);
}
doesn’t work.
‘Ambiguous reference’
You need to make it less ambiguous. When you define ‘a’, give it a type