- Home /
This question was
closed Jan 16, 2013 at 07:42 PM by
Jessy for the following reason:
Duplicate Question 381755
Question by
RickyX · Jan 16, 2013 at 07:12 PM ·
gui.button
GUI.Button string change C#
Hello guys, i'm new to unity forums, i came here to ask one simple question. I don't know how to replace button name with my new string. - Sorry for my bad English public string[] Text = new string[] { "BlaBlaBla" };
void OnGUI () { if(GUI.Button(newRect(100,100,100,100), Text)) {
}
} Then this Error Come : error CS1502: The best overloaded method match for UnityEngine.GUI.Button(UnityEngine.Rect, string)' has some invalid arguments And This one too : error CS1503: Argument
#2' cannot convert string[]' expression to type
string' Why is this error Coming ? I think you guys will slove my problem, I think it's really simple.
Comment