Home > other >  New people for advice, NGUI problem
New people for advice, NGUI problem

Time:09-17

In TXT text into three lines, there are three images in the unity, how to do, please click on the different images show the number of peers not words, such as clicking on the first picture shows the first line, and so on

CodePudding user response:


Private UILable lable.
Void UpdateLable (int index) {
The switch (index) {
Case 0://the first figure
Lable. Text="1 picture to show the contents of the";
break;
Case 1://second picture
Lable. Text="2 picture to show the contents of the";
break;
Case 2://the third picture
Lable. Text="3 picture to show the contents of the";
break;
}
}


And then, you need to do is to put the button 0 on the corresponding line,
  • Related