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开始处插入一段时间间隔,原先的内容根据时间往后移。


DOTween Sequence 使用图解的更多相关文章

  1. DoTween学习笔记(二) UGUI结合使用(实现一些简单效果)

    UGUI官方实例中是使用Animation来控制UI的移动,放大缩小动画等等, Animation来控制UI的动画工作量实在是太多了, 所以我们一般使用itween,DoTween. 来控制动画, 这 ...

  2. Unity DoTween 动画使用案例

    这边我就直接放一个标准的Dotween动画的使用demo吧. 这个案例满足应该可以完成你所想实现的几乎所有复杂动画. void PlayTween() { //set tween data float ...

  3. DOTween坑点

    Sequence相关 如实现一个物体有序列的运动,A->B->C,需要实例化Sequence与实现方法在同一处调用. Sequence m_Sequence; void SequenceM ...

  4. DoTween之队列

    //引用命名空间 using DG.Tweening; // 初始化一个sequence Sequence sequence = DOTween.Sequence(); //添加动画 sequence ...

  5. DOTween的基本用法

    首先声明一点,不要简单的认为 DOTween 只能用在 Transform 组件上完成一些简单的动画,或者是完成一些 UI 动画,DOTween 的用途是很广的,unity中有很多组件都可以使用 DO ...

  6. DoTween的用法

    using UnityEngine;using System.Collections;using DG.Tweening;using UnityEngine.UI; public class Test ...

  7. [Unity插件]DOTween基础

    官方文档链接:http://dotween.demigiant.com/documentation.PHP#globalSettings 普通版下载地址:http://dotween.demigian ...

  8. DOTWeen 使用

    using UnityEngine; using System.Collections; using DG.Tweening; using UnityEngine.UI; public class T ...

  9. Unity Dotween官方案例学习

    本文只涉及一些案例,具体查看 DoTween 官方文档. 一. Basics public class Basics : MonoBehaviour { public Transform redCub ...

随机推荐

  1. 一起来学linux:日志文件

    在管理系统当中,经常会遇到各种各样的错误和异常.要找到这些错误和异常,就需要各种日志来帮助定位问题了.linux的日志都是存放在/var/log这个文件夹下面,常见的日志文件有如下几种;/var/lo ...

  2. python mmap使用记录

    1.写文件 with open('??', 'r+b') as f: with contextlib.closing(mmap.mmap(f.fileno(), size, flags=mmap.MA ...

  3. linux 下 cat

    [root@localhost Data]# cat << end > iptable> 3> 4> 5> > 6> end[root@local ...

  4. linux 下监控进程流量情况命令 NetHogs

    摘自: http://www.cnblogs.com/kerrycode/p/4748970.html NetHogs介绍 NetHogs是一款开源.免费的,终端下的网络流量监控工具,它可监控Linu ...

  5. Centos7 安装lnmp

    Centos7 安装lnmp 1.下载 wget http://soft.vpser.net/lnmp/lnmp1.5-full.tar.gz 2.解压 tar -zvxf lnmp1.5-full. ...

  6. 关于for 循环里 线程执行顺序问题

    最近在做项目时遇到了 这样的需求 要在一个for循环里执行下载的操作, 而且要等 下载完每个 再去接着走循环.上网查了一些 觉得说的不是很明确.现在把我用到的代码 贴上 希望可以帮到有此需求的开发者  ...

  7. Codeforces617E XOR and Favorite Number(分块 异或)

    Bob has a favorite number k and ai of length n. Now he asks you to answer m queries. Each query is g ...

  8. bzoj3456城市规划 多项式取模

    題目大意 求出有n个点的有标号简单连通无向图的数目. 题解 什么破玩意,直接输出\(2^{C_n^2}\)走人 我们发现这张图要求连通,而上式肯定不能保证连通. 其实上式表示的是不保证连通的有标号简单 ...

  9. 【Lintcode】095.Validate Binary Search Tree

    题目: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is define ...

  10. Vue cli项目开启Gzip

    目录 安装 compression-webpack-plugin 更改配置文件 服务器开启gzip功能 安装 compression-webpack-plugin 建议安装v1.1.11版本,最新版本 ...