http://blog.csdn.net/jiejieup/article/details/41521577

最近在使用DOTween制作一些动画过渡的内容,发现非常好用,使用Sequence类可以方便的组织Tweens来制作复杂的过渡动画。Sequence的几个函数文档说明都比较简单,我列出每个函数调用后的Sequence变化以方便查阅。

下图表示调用函数前的Sequence。


Append(Tween tween)

Adds the given tween to the end of the Sequence.

在Sequence的最后添加一个tween。


AppendCallback(TweenCallback callback)

Adds the given callback to the end of the Sequence.

在Sequence的最后添加一个回调函数。


AppendInterval(float interval)

Adds the given interval to the end of the Sequence.

在Sequence的最后添加一段时间间隔。


Insert(float atPosition, Tween tween)

Inserts the given tween at the given time position, thus allowing you to overlap tweens instead than just placing them one after each other.

在给定的时间位置上放置一个tween,可以实现同时播放多个tween的效果,而不是一个接着一个播放。


InsertCallback(float atPosition, TweenCallback callback)

Inserts the given callback at the given time position.

在给定的时间位置上放置一个回调函数。


Join(Tween tween)

Inserts the given tween at the same time position of the last tween added to the Sequence.

在Sequence的最后一个tween的开始处放置一个tween。


Prepend(Tween tween)

Adds the given tween to the beginning of the Sequence, pushing forward in time the rest of the contents

在Sequence开始处插入一个tween,原先的内容根据时间往后移。


PrependCallback(TweenCallback callback)

Adds the given callback to the beginning of the Sequence.

在Sequence开始处插入一个回调函数。


PrependInterval(float interval)

Adds the given interval to the beginning of the Sequence, pushing forward in time the rest of the contents.

在Sequence开始处插入一段时间间隔,原先的内容根据时间往后移。


最新文章

  1. 微信小程序开发日记——高仿知乎日报(上)
  2. [BI项目记]-搭建代码管理环境之云端
  3. Linux Shell 2>&1 &
  4. ☀【CSS3】box-sizing
  5. SVProgressHUD 用法
  6. C#创建微信自定义菜单
  7. 关于asp.net会话阻塞
  8. MySQL学习笔记(3)
  9. parquet 合并元数据
  10. angularjs之ui-bootstrap的Datepicker Popup实现双日期选择控件
  11. Python2/3的中、英文字符编码与解码输出: UnicodeDecodeError: 'ascii' codec can't decode/encode
  12. Spring Boot 2.x 系列教程:WebFlux REST API 全局异常处理 Error Handling
  13. php使用root用户启动
  14. WIN10基于Hyper-V下运行kubernetes入门问题
  15. Handler机制
  16. 分布式理论——从ACID到CAP再到BASE
  17. Java语法基础学习DaySix
  18. install vscode on centos
  19. 洛谷P1527 [国家集训队] 矩阵乘法 [整体二分,二维树状数组]
  20. 用C/C++开发android应用

热门文章

  1. python manage.py shell 的增删改查
  2. PHP上传视频
  3. ABAP 设置单元格颜色
  4. NPM 与 Nodejs
  5. github 博客模板
  6. 安装wampserver 计算机丢失msvcr100.dll
  7. 话说文件系统——aufs源码分析(三)【转】
  8. 学习html第一天
  9. Rabbitmq+Nginx+keepalived高可用热备
  10. Kafka0.7运行时报错 kafka/javaapi/consumer/ConsumerConnector : Unsupported major.minor version 51.0 解决