WrapMode 枚举

模块: cc

动画使用的循环模式。

索引

  • Default
  • Normal
  • Reverse
  • Loop
  • LoopReverse
  • PingPong
  • PingPongReverse

Details

Default

向 Animation Component 或者 AnimationClip 查找 wrapMode

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:22
Normal

动画只播放一遍

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:29
Reverse

从最后一帧或结束位置开始反向播放,到第一帧或开始位置停止

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:36
Loop

循环播放

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:43
LoopReverse

反向循环播放

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:50
PingPong

从第一帧播放到最后一帧,然后反向播放回第一帧,到第一帧后再正向播放,如此循环

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:58
PingPongReverse

从最后一帧开始反向播放,其他同 PingPong

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:66

results matching ""

    No results matching ""