ezgui如何控制clone的 scrolllist中text的属性
直接上图public class ScrollController : MonoBehaviour {public UIScrollList list;
public GameObject itemObject;
public GameObject testitemObject;
public int roomCount;
private string url="http://*****/nn.aspx";
private string txt_Name="";
private string txt_Score="10000";
private string txt_Message="nnn";
string abc="";
//public GameObject temp;
// Use this for initialization
void Start () {
StartCoroutine(InsertMethod());
}
// Update is called once per frame
void Update () {
}
IEnumerator InsertMethod()
{
//txt_Name=txtfield.Text;
//print (txt_Name);
WWWForm form=new WWWForm();
form.AddField("post_name",txt_Name);
form.AddField("post_score",txt_Score);
form.AddField("post_message",txt_Message);
WWW w=new WWW(url,form);
yield return w;
print (w.text);
abc=w.text;
//str.Substring(0,str.IndexOf("字符")+1);
for(int i=0;i<1;i++)
{
UIListItem item=(UIListItem)list.CreateItem(itemObject,abc);//i*1+"\n"+w.text);//.Substring(0,w.text.IndexOf("<%@ P")+1));
item.data=(i+1)*10;
}
list.SetSelectedItem(0);
print (w.text);
//return null;
}
} 我只是路过打酱油的。{:5_399:}{:5_399:}{:5_399:} 很不错 顶顶多好 难得一见的好帖 说的非常好 LZ真是人才 很不错 好帖就是要顶 真心顶
页:
[1]