uGUI练习 开篇

一、准备阶段

1、Unity 4.6 Beta b18或更高版本(注:目前泄露版的Unity5.0Beta 对UI的支持并没有4.6 Beta那么好)

image

2、了解 Unity 2D Sprite的基础知识及操作(包括Sprite Packer及Sprite ),可参考我之前的文章:

Unity4.3 2D工具 的简单使用教程

Unity4.3 Sprite Packer用法介绍

3、熟悉NGUI操作更佳,可参考http://game.ceeger.com/forum/index.php?m=space&uid=7487&page=1 或NGUI官方网站

二、练习内容

uGUI练习(一) Anchor

uGUI练习(二) Animate UI

uGUI练习(三) KeyBoard Navigation

uGUI练习(四) Light UI

uGUI练习(五) Draggable Object

uGUI练习(六) ScrollView

uGUI练习(七) Drag And Drop

uGUI练习(八) InputField

uGUI练习(九) Toggle Button

工程下载

基于Unity5.3.5f1的示例下载:https://github.com/zhaoqingqing/UGUIDemo/releases

练习的工程文件下载:http://pan.baidu.com/s/1dDcSoyl

UITest工程文件:http://pan.baidu.com/s/1gdf5X7P

三、资料参考

UGUI Experiment uGUI练习:https://github.com/kmitra/UGUIExperiment

Flop 翻转效果 :https://github.com/rakkarage/Flop

HSV Color Picker 颜色选择器:https://github.com/judah4/HSV-Color-Picker-Unity

四、其它

UITest 非常全面的Example:https://github.com/Gris87/UnityUITest  打包Project:http://pan.baidu.com/s/1gdAEfnl

英文入门篇:http://dev.classmethod.jp/client-side/unity-client-side/unity4-6-ui-components-property-list/

五、Unity官方UIProject

Widgets

UIBetaTestProject下载:http://forum.unity3d.com/threads/ui-example-project.263418/

原文地址:https://www.cnblogs.com/zhaoqingqing/p/3972596.html