Skip to content

粒子特效 ​

公共工程字段和通用参数规则见 JSON 样例概述。

全屏粒子参数 ​

添加花瓣粒子效果,并调整粒子数量和大小。

完整 JSON ​

关键参数 ​

字段路径作用类型与范围示例值
timeline.timelineVideoFxTracks[].timelineVideoFxs[].displayName效果显示名称stringpetal
timeline.timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].key特效参数名string;由 SDK 或资源包定义rateGain、sizeGain
timeline.timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].type对象或参数类型string;取值由对象决定float
timeline.timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].value参数值string;逻辑数字或布尔值也保持 string3
timeline.timelineVideoFxTracks[].timelineVideoFxs[].id资源包、样式或动画 IDstring;使用对应资源时非空非空
timeline.timelineVideoFxTracks[].timelineVideoFxs[].intensity特效强度number;[0, 1]1
timeline.timelineVideoFxTracks[].timelineVideoFxs[].type对象或参数类型string;取值由对象决定package

手绘粒子轨迹 ​

添加火焰喷发粒子,并使用 curvePoint 对象描述完整手绘运动轨迹。

完整 JSON ​

关键参数 ​

字段路径作用类型与范围示例值
timeline.timelineVideoFxTracks[].timelineVideoFxs[].displayName效果显示名称stringFlame eruption
timeline.timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].key特效参数名string;由 SDK 或资源包定义rateGain、sizeGain、curvePoint
timeline.timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].objectValue.timeSec曲线点时间number,秒;>= 00 ~ 49
timeline.timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].objectValue.x曲线点坐标number;有限数值-305.901611328125 ~ 290.1639404296875
timeline.timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].objectValue.y曲线点坐标number;有限数值-140.65573120117188 ~ 159.34426879882812
timeline.timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].type对象或参数类型string;取值由对象决定float、object
timeline.timelineVideoFxTracks[].timelineVideoFxs[].fxParams[].value参数值string;逻辑数字或布尔值也保持 string1
timeline.timelineVideoFxTracks[].timelineVideoFxs[].id资源包、样式或动画 IDstring;使用对应资源时非空非空
timeline.timelineVideoFxTracks[].timelineVideoFxs[].intensity特效强度number;[0, 1]1
timeline.timelineVideoFxTracks[].timelineVideoFxs[].type对象或参数类型string;取值由对象决定package