TrailModule 类型
3D 粒子拖尾模块
索引
属性(properties)
enableBoolean是否启用modeTrailMode设定粒子生成轨迹的方式。lifeTimeCurveRange轨迹存在的生命周期。minParticleDistanceNumber每个轨迹粒子之间的最小间距。spaceSpace轨迹设定时的坐标系。existWithParticlesBoolean粒子本身是否存在。textureModeTextureMode设定纹理填充方式。widthFromParticleBoolean是否使用粒子的宽度。widthRatioCurveRange控制轨迹长度的曲线。colorFromParticleBoolean是否使用粒子的颜色。colorOverTrailGradientRange轨迹的颜色。colorOvertimeGradientRange轨迹随时间变化的颜色。
Details
属性(properties)
enable
是否启用
| meta | description |
|---|---|
| 类型 | Boolean |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:137 |
mode
设定粒子生成轨迹的方式。
| meta | description |
|---|---|
| 类型 | TrailMode |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:161 |
lifeTime
轨迹存在的生命周期。
| meta | description |
|---|---|
| 类型 | CurveRange |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:171 |
minParticleDistance
每个轨迹粒子之间的最小间距。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:184 |
space
轨迹设定时的坐标系。
| meta | description |
|---|---|
| 类型 | Space |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:202 |
existWithParticles
粒子本身是否存在。
| meta | description |
|---|---|
| 类型 | Boolean |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:221 |
textureMode
设定纹理填充方式。
| meta | description |
|---|---|
| 类型 | TextureMode |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:229 |
widthFromParticle
是否使用粒子的宽度。
| meta | description |
|---|---|
| 类型 | Boolean |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:239 |
widthRatio
控制轨迹长度的曲线。
| meta | description |
|---|---|
| 类型 | CurveRange |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:248 |
colorFromParticle
是否使用粒子的颜色。
| meta | description |
|---|---|
| 类型 | Boolean |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:258 |
colorOverTrail
轨迹的颜色。
| meta | description |
|---|---|
| 类型 | GradientRange |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:266 |
colorOvertime
轨迹随时间变化的颜色。
| meta | description |
|---|---|
| 类型 | GradientRange |
| 定义于 | cocos2d/core/3d/particle/renderer/trail.ts:276 |