TextureAnimationModule Class
The texture animation module of 3d particle.
Index
Properties
enableBooleanThe enable of TextureAnimationModule.modeModeSet the type of particle map animation (only supports Grid mode for the time being)numTilesXNumberAnimation frames in X direction.numTilesYNumberAnimation frames in Y direction.animationAnimationThe way of the animation plays.randomRowBooleanRandomly select a line from the animated map to generate the animation.rowIndexNumberSelect specific lines from the animation map to generate the animation.frameOverTimeCurveRangeFrame and time curve of animation playback in one cycle.startFrameCurveRangePlay from which frames, the time is the life cycle of the entire particle system.cycleCountNumberNumber of playback loops in a life cycle.
Details
Properties
enable
The enable of TextureAnimationModule.
| meta | description |
|---|---|
| Type | Boolean |
| Defined in | cocos2d/core/3d/particle/animator/texture-animation.ts:55 |
mode
Set the type of particle map animation (only supports Grid mode for the time being)
| meta | description |
|---|---|
| Type | Mode |
| Defined in | cocos2d/core/3d/particle/animator/texture-animation.ts:73 |
numTilesX
Animation frames in X direction.
| meta | description |
|---|---|
| Type | Number |
| Defined in | cocos2d/core/3d/particle/animator/texture-animation.ts:92 |
numTilesY
Animation frames in Y direction.
| meta | description |
|---|---|
| Type | Number |
| Defined in | cocos2d/core/3d/particle/animator/texture-animation.ts:100 |
animation
The way of the animation plays.
| meta | description |
|---|---|
| Type | Animation |
| Defined in | cocos2d/core/3d/particle/animator/texture-animation.ts:108 |
randomRow
Randomly select a line from the animated map to generate the animation.
This option only takes effect when the animation playback mode is SingleRow.
| meta | description |
|---|---|
| Type | Boolean |
| Defined in | cocos2d/core/3d/particle/animator/texture-animation.ts:118 |
rowIndex
Select specific lines from the animation map to generate the animation.
This option is only available when the animation playback mode is SingleRow and randomRow is disabled.
| meta | description |
|---|---|
| Type | Number |
| Defined in | cocos2d/core/3d/particle/animator/texture-animation.ts:128 |
frameOverTime
Frame and time curve of animation playback in one cycle.
| meta | description |
|---|---|
| Type | CurveRange |
| Defined in | cocos2d/core/3d/particle/animator/texture-animation.ts:138 |
startFrame
Play from which frames, the time is the life cycle of the entire particle system.
| meta | description |
|---|---|
| Type | CurveRange |
| Defined in | cocos2d/core/3d/particle/animator/texture-animation.ts:148 |
cycleCount
Number of playback loops in a life cycle.
| meta | description |
|---|---|
| Type | Number |
| Defined in | cocos2d/core/3d/particle/animator/texture-animation.ts:158 |