NGUI的UIPopupList 可以通过修改items属性来动态改变菜单选项:
public class popListvahnge : MonoBehaviour { public UIPopupList popList; public void popChange()
{
GetComponent<UILabel>().text = popList.value; //popList.items = new System.Collections.Generic.List<string>();
popList.items.Add("aa");
popList.items.Add("bb");
popList.items.Add("cc"); }
}
如图: