tween:在....之间 itween:完成补间动画(所谓补间动画又叫做中间帧动画,渐变动画,只要建立起始和结束的画面,中间部分由软件自动生成) 优点:
iTween.MoveTo(this.gameObject, new Vector3(5, 5, 5), 5); iTween.MoveTo(this.gameObject, iTween.Hash("y", 3, "time", 3, "delay", 1, "looptype", iTween.LoopType.pingPong)); 增加一个itween组件,后面的会覆盖前面的,起作用的是第二句代码 iTween.ColorTo(preobj, Color.white, 0.5f); 新增加一个新的itween组件 动画方式枚举:( http://www.robertpenner.com/easing/easing_demo.html) 平方
easyIn:淡入 easyOut:淡出 easyInOut:淡入淡出 用于循环的枚举类型:
· none = Do not loop.
不循环
· loop = Rewind and replay.
循环
· pingPong = Ping pong the animation back and forth.
往复API: |
Itween API说明
最新推荐文章于 2023-01-06 17:03:53 发布