【从零开始学NGUI 】 (五)PopupList
2015-07-23 10:21
471 查看
PopupList的用法和Slider大同小异
拖拽一个Control - Simple Popup List到Scene场景中
修改Options
Default:默认值
Position:这里选择Below,表示向下弹出,默认是向上弹出
运行
在脚本中监听List的变化
当List有选择的时候就会在控制台打印当前的选项Value
拖拽一个Control - Simple Popup List到Scene场景中
修改Options
Default:默认值
Position:这里选择Below,表示向下弹出,默认是向上弹出
运行
在脚本中监听List的变化
UIPopupList myPopupList; void Start () { myPopupList = GameObject.Find("myPopupList").GetComponent<UIPopupList>(); EventDelegate.Add(myPopupList.onChange, myPopupListOnValueChange); } private void myPopupListOnValueChange() { Debug.Log(" my PopupList is On Value Change = " + UIPopupList.current.value); }
当List有选择的时候就会在控制台打印当前的选项Value
相关文章推荐
- make 2>&1 | tee build.log 求解释
- [leetcode] Longest Consecutive Sequence
- 【Guitar Pro 6 中文破解版】完整安装教程+下载地址
- soapui 不同版本之间切换excel
- 2.RequestParam、RequestHeader、CookieValue注解
- hdu5297 Y sequence(容斥原理+迭代)
- Hibernate Query Language
- 自定义系统控件的外观:UIApearance
- 小胖说事34-----iOS UIImageView 的contentMode属性应用
- [转载]Integer.parseInt()和这个Integer.valueOf()的详解
- Win10准正式版Build 10240多国语言包下载(含111种)
- 优化UITableViewCell高度计算的那些事
- 【从零开始学NGUI 】 (四)Slider
- codeforces(559B)--B. Equivalent Strings(暴搜 或 最小表示法)
- Codeforces Round #313 (Div. 2)——D递归,stirng——Equivalent Strings
- Win10手机预览版Build 10166慢速版分支推送
- Android开发规范(编码+性能+UI)
- Problem A: Median Value
- IOS开发UI篇--IOS动画(Core Animation)总结
- Codeforces Round #313 D. Equivalent Strings(DFS)