研究很久 以免以后忘记 代码是在别的微博看到的
for (i = 0; i < count; i++) {
PanelList.GetComponent<UILabel>().text = data[i];
Debug.Log(test.ToString());
GameObject go = NGUITools.AddChild(showGrid,test);
go.transform.localPosition = new Vector3(find.transform.position.x,find.transform.position.y+i*25,find.transform.position.z);
showGrid.GetComponent<UIGrid>().Reposition();
}