粒子特效
公共工程字段和通用参数规则见 JSON 样例概述。
全屏粒子参数
添加花瓣粒子效果,并调整粒子数量和大小。
完整 JSON
关键参数
| 字段路径 | 作用 | 类型与范围 | 示例值 |
|---|---|---|---|
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].displayName | 效果显示名称 | string | petal |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].key | 特效参数名 | string;由 SDK 或资源包定义 | rateGain、sizeGain |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].type | 对象或参数类型 | string;取值由对象决定 | float |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].value | 参数值 | string;逻辑数字或布尔值也保持 string | 3 |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].id | 资源包、样式或动画 ID | string;使用对应资源时非空 | 非空 |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].intensity | 特效强度 | number;[0, 1] | 1 |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].type | 对象或参数类型 | string;取值由对象决定 | package |
手绘粒子轨迹
添加火焰喷发粒子,并使用 curvePoint 对象描述完整手绘运动轨迹。
完整 JSON
关键参数
| 字段路径 | 作用 | 类型与范围 | 示例值 |
|---|---|---|---|
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].displayName | 效果显示名称 | string | Flame eruption |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].key | 特效参数名 | string;由 SDK 或资源包定义 | rateGain、sizeGain、curvePoint |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].objectValue.timeSec | 曲线点时间 | number,秒;>= 0 | 0 ~ 49 |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].objectValue.x | 曲线点坐标 | number;有限数值 | -305.901611328125 ~ 290.1639404296875 |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].objectValue.y | 曲线点坐标 | number;有限数值 | -140.65573120117188 ~ 159.34426879882812 |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].type | 对象或参数类型 | string;取值由对象决定 | float、object |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].value | 参数值 | string;逻辑数字或布尔值也保持 string | 1 |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].id | 资源包、样式或动画 ID | string;使用对应资源时非空 | 非空 |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].intensity | 特效强度 | number;[0, 1] | 1 |
timelines[].timelineVideoFxTracks[].timelineVideoFxs[].type | 对象或参数类型 | string;取值由对象决定 | package |