Options
All
  • Public
  • Public/Protected
  • All
Menu

External module tween

Index

Classes

Interfaces

Type aliases

Functions

Type aliases

TweenEasing

TweenEasing: "linear" | "smooth" | "fade" | "quadIn" | "quadOut" | "quadInOut" | "quadOutIn" | "cubicIn" | "cubicOut" | "cubicInOut" | "cubicOutIn" | "quartIn" | "quartOut" | "quartInOut" | "quartOutIn" | "quintIn" | "quintOut" | "quintInOut" | "quintOutIn" | "sineIn" | "sineOut" | "sineInOut" | "sineOutIn" | "expoIn" | "expoOut" | "expoInOut" | "expoOutIn" | "circIn" | "circOut" | "circInOut" | "circOutIn" | "elasticIn" | "elasticOut" | "elasticInOut" | "elasticOutIn" | "backIn" | "backOut" | "backInOut" | "backOutIn" | "bounceIn" | "bounceOut" | "bounceInOut" | "bounceOutIn"

Functions

tween

  • tween(target?: undefined | object): Tween
  • tween 是一个工具函数,帮助实例化 Tween 实例。

    example

    tween(this.node) .to(1, {scale: new Vec3(2, 2, 2), position: new Vec3(5, 5, 5)}) .call(() => { console.log('This is a callback'); }) .by(1, {scale: new Vec3(-1, -1, -1)}, {easing: 'sineOutIn'}) .start()

    Parameters

    • Optional target: undefined | object

      缓动的目标

    Returns Tween

    Tween 实例

tweenUtil

  • tweenUtil(target?: undefined | object): Tween
  • tweenUtil 是一个工具函数,帮助实例化 Tween 实例。

    deprecated

    please use tween instead.

    Parameters

    • Optional target: undefined | object

    Returns Tween

Generated using TypeDoc