WrapMode 枚举
模块: cc
动画使用的循环模式。
索引
DefaultNormalReverseLoopLoopReversePingPongPingPongReverse
Details
Default
向 Animation Component 或者 AnimationClip 查找 wrapMode
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/animation/types.js:47 |
Normal
动画只播放一遍
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/animation/types.js:54 |
Reverse
从最后一帧或结束位置开始反向播放,到第一帧或开始位置停止
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/animation/types.js:61 |
Loop
循环播放
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/animation/types.js:68 |
LoopReverse
反向循环播放
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/animation/types.js:75 |
PingPong
从第一帧播放到最后一帧,然后反向播放回第一帧,到第一帧后再正向播放,如此循环
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/animation/types.js:83 |
PingPongReverse
从最后一帧开始反向播放,其他同 PingPong
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/animation/types.js:91 |