zoukankan      html  css  js  c++  java
  • DOTween Sequence 使用图解

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

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

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

    image


    Append(Tween tween)

    Adds the given tween to the end of the Sequence.

    在Sequence的最后添加一个tween。

    image


    AppendCallback(TweenCallback callback)

    Adds the given callback to the end of the Sequence.

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

    image


    AppendInterval(float interval)

    Adds the given interval to the end of the Sequence.

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

    image


    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的效果,而不是一个接着一个播放。

    image


    InsertCallback(float atPosition, TweenCallback callback)

    Inserts the given callback at the given time position.

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

    image


    Join(Tween tween)

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

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

    image


    Prepend(Tween tween)

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

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

    image


    PrependCallback(TweenCallback callback)

    Adds the given callback to the beginning of the Sequence.

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

    image


    PrependInterval(float interval)

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

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

    image


  • 相关阅读:
    grep 匹配打印的上下几行
    java List<String>的初始化
    HashMap优雅的初始化方式以及引申
    protocol buffer开发指南(官方)
    20种常用的DOS命令小结
    linux xfs文件系统无法用readdir获取dirent文件类型d_type则用stat获取暨stat函数讲解
    java中jar命令打包一个文件夹下的所有文件
    C/C++中的格式化字符
    自定义标签(JspFragment类、invoke方法、开发带属性的标签)
    java中Scanner类nextLine()和next()的区别和使用方法
  • 原文地址:https://www.cnblogs.com/nafio/p/9137117.html
Copyright © 2011-2022 走看看