TextureAnimationModule 类型
3D 粒子的贴图动画模块
索引
属性(properties)
enableBoolean是否启用modeMode设定粒子贴图动画的类型(暂只支持 Grid 模式。numTilesXNumberX 方向动画帧数。numTilesYNumberY 方向动画帧数。animationAnimation动画播放方式。randomRowBoolean随机从动画贴图中选择一行以生成动画。rowIndexNumber从动画贴图中选择特定行以生成动画。frameOverTimeCurveRange一个周期内动画播放的帧与时间变化曲线。startFrameCurveRange从第几帧开始播放,时间为整个粒子系统的生命周期。cycleCountNumber一个生命周期内播放循环的次数。
Details
属性(properties)
enable
是否启用
| meta | description |
|---|---|
| 类型 | Boolean |
| 定义于 | cocos2d/core/3d/particle/animator/texture-animation.ts:55 |
mode
设定粒子贴图动画的类型(暂只支持 Grid 模式。
| meta | description |
|---|---|
| 类型 | Mode |
| 定义于 | cocos2d/core/3d/particle/animator/texture-animation.ts:73 |
numTilesX
X 方向动画帧数。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/3d/particle/animator/texture-animation.ts:92 |
numTilesY
Y 方向动画帧数。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/3d/particle/animator/texture-animation.ts:100 |
animation
动画播放方式。
| meta | description |
|---|---|
| 类型 | Animation |
| 定义于 | cocos2d/core/3d/particle/animator/texture-animation.ts:108 |
randomRow
随机从动画贴图中选择一行以生成动画。
此选项仅在动画播放方式为 SingleRow 时生效。
| meta | description |
|---|---|
| 类型 | Boolean |
| 定义于 | cocos2d/core/3d/particle/animator/texture-animation.ts:118 |
rowIndex
从动画贴图中选择特定行以生成动画。
此选项仅在动画播放方式为 SingleRow 时且禁用 randomRow 时可用。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/3d/particle/animator/texture-animation.ts:128 |
frameOverTime
一个周期内动画播放的帧与时间变化曲线。
| meta | description |
|---|---|
| 类型 | CurveRange |
| 定义于 | cocos2d/core/3d/particle/animator/texture-animation.ts:138 |
startFrame
从第几帧开始播放,时间为整个粒子系统的生命周期。
| meta | description |
|---|---|
| 类型 | CurveRange |
| 定义于 | cocos2d/core/3d/particle/animator/texture-animation.ts:148 |
cycleCount
一个生命周期内播放循环的次数。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/3d/particle/animator/texture-animation.ts:158 |