第二步 创建储物箱界面
1. 使用UI Tool创建一个Advanced 3D UI结构,Layer 为GUI(如果没有该GUI层,可以在Layer添加面板中添加),如图所示:
![点击查看原图 请输入描述](http://game.ceeger.com/forum/attachment/Mon_1210/16_7487_8fcb283596c0e00.png)
把Panel和Camera分离出来,接着删除UIRoot(3D)和Anchor对象,并把Camera调整成为Panel的子物体,最后把Panel改名为3DUI,Camera命名为3DUICamera,最后如图所示
![点击查看原图 请输入描述](http://game.ceeger.com/forum/attachment/Mon_1210/16_7487_1a640469cd08352.png)
在3DUI下创建一个空的子物体,并命名为Scale,reset一下,如图所示
![点击查看原图 请输入描述](http://game.ceeger.com/forum/attachment/Mon_1210/16_7487_72ee15483c2967f.png)
在Scale下创建一个空的游戏对象,并命名为Shoulders,reset一下。接着在其下创建一个Sliced sprite元件,并命名为Background,其Sprite为Flat Outline,并调整其大小和位置,如图所示
![点击查看原图 请输入描述](http://game.ceeger.com/forum/attachment/thumb/Mon_1210/16_7487_049176cbe1fc667.png)
接着,同样在Shoulders下,创建一个Label,并命名为Caption,并为其输入Shoulder字样,并调整它的位置,如图所示
![点击查看原图 请输入描述](http://game.ceeger.com/forum/attachment/Mon_1210/16_7487_d29635bf10252e9.png)
同样在Shoulders下,创建一个Sprite,sprite为Orc Armor-should,并命名为Icon,并调整它的位置,如图所示
![点击查看原图 请输入描述](http://game.ceeger.com/forum/attachment/Mon_1210/16_7487_b96280a38300900.png)
使用同样的方法,创建另外两个图标,分别命名为:Boots,Bracers,并修改其Icon和Caption的图片和文字,最终效果如下
![点击查看原图 请输入描述](http://game.ceeger.com/forum/attachment/thumb/Mon_1210/16_7487_3977b1a8fa0a53c.png)
选择Scale,在其下创建一个Button元件,并命名为Random Button,并设置其Label文本和背景颜色以及整个按钮大小位置,最终效果如图所示
![点击查看原图 请输入描述](http://game.ceeger.com/forum/attachment/thumb/Mon_1210/16_7487_6b5857e1b34bfeb.png)
在Scale下创建一个空的游戏对象,并命名为Backpack。接着在其下,创建一个Label元件,并把文本设置成Backpack,最后调整Backpack的位置,如图所示
![点击查看原图 请输入描述](http://game.ceeger.com/forum/attachment/thumb/Mon_1210/16_7487_a79a3f2cbeab097.png)