TrailModule Class
The trail module of 3d particle.
Index
Properties
enableBooleanThe enable of trailModule.modeTrailModeSets how particles generate trajectories.lifeTimeCurveRangeLife cycle of trajectory.minParticleDistanceNumberMinimum spacing between each track particlespaceSpaceThe coordinate system of trajectories.existWithParticlesBooleanWhether the particle itself exists.textureModeTextureModeSet the texture fill methodwidthFromParticleBooleanWhether to use particle widthwidthRatioCurveRangeCurves that control track lengthcolorFromParticleBooleanWhether to use particle colorcolorOverTrailGradientRangeThe color of trajectories.colorOvertimeGradientRangeTrajectories color over time.
Details
Properties
enable
The enable of trailModule.
| meta | description |
|---|---|
| Type | Boolean |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:137 |
mode
Sets how particles generate trajectories.
| meta | description |
|---|---|
| Type | TrailMode |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:161 |
lifeTime
Life cycle of trajectory.
| meta | description |
|---|---|
| Type | CurveRange |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:171 |
minParticleDistance
Minimum spacing between each track particle
| meta | description |
|---|---|
| Type | Number |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:184 |
space
The coordinate system of trajectories.
| meta | description |
|---|---|
| Type | Space |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:202 |
existWithParticles
Whether the particle itself exists.
| meta | description |
|---|---|
| Type | Boolean |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:221 |
textureMode
Set the texture fill method
| meta | description |
|---|---|
| Type | TextureMode |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:229 |
widthFromParticle
Whether to use particle width
| meta | description |
|---|---|
| Type | Boolean |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:239 |
widthRatio
Curves that control track length
| meta | description |
|---|---|
| Type | CurveRange |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:248 |
colorFromParticle
Whether to use particle color
| meta | description |
|---|---|
| Type | Boolean |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:258 |
colorOverTrail
The color of trajectories.
| meta | description |
|---|---|
| Type | GradientRange |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:266 |
colorOvertime
Trajectories color over time.
| meta | description |
|---|---|
| Type | GradientRange |
| Defined in | cocos2d/core/3d/particle/renderer/trail.ts:276 |