WrapMode Enum

Module: cc

Specifies how time is treated when it is outside of the keyframe range of an Animation.

Index

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

Details

Default

Reads the default wrap mode set higher up.

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:22
Normal

All iterations are played as specified.

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:29
Reverse

All iterations are played in the reverse direction from the way they are specified.

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:36
Loop

When time reaches the end of the animation, time will continue at the beginning.

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:43
LoopReverse

All iterations are played in the reverse direction from the way they are specified. And when time reaches the start of the animation, time will continue at the ending.

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:50
PingPong

Even iterations are played as specified, odd iterations are played in the reverse direction from the way they are specified.

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:58
PingPongReverse

Even iterations are played in the reverse direction from the way they are specified, odd iterations are played as specified.

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/types.js:66

results matching ""

    No results matching ""