uGUI练习(二) Animate UI

练习目标

通过Animation录制UI动画

一、步骤

1、创建一个Panel,下面再创建两个子Panel

image

2、修改Canvas的 Render Mode为Screen Space-Camer

image

3、为每个Panel下添加一个Button

image

4、转动父Panel的Rotation的Y值,观察Scene和Game视图

image

imageimage

5、通过Unity的Animation工具,录制Panel的Rotation动画

image

6、录制好动画之后,创建Animation Controller,设置一个空的动画为默认动画

image

7、设置Panel1和Panel2的Button的On Click函数

imageimage

二、Animate UI预览

Animate UI SceneAnimate UI

posted @ 2014-09-15 14:31  赵青青  阅读(3501)  评论(7编辑  收藏  举报