160 lines
5.6 KiB
JSON
160 lines
5.6 KiB
JSON
{
|
||
"name": "2d粒子配置",
|
||
"desc": "2d粒子配置",
|
||
"type": "ParticleConfig",
|
||
"value": {
|
||
"system": {
|
||
"name": "主要参数",
|
||
"desc": "主要参数",
|
||
"type": "System",
|
||
"value": {
|
||
"duration": {
|
||
"name": "持续时间",
|
||
"desc": "持续时间(单位秒)",
|
||
"type": "float",
|
||
"value": 0
|
||
},
|
||
"delay": {
|
||
"name": "启动延时",
|
||
"desc": "启动延时",
|
||
"type": "float",
|
||
"value": 0
|
||
},
|
||
"max_num": {
|
||
"name": "粒子数量上限",
|
||
"desc": "粒子数量上限",
|
||
"type": "uint",
|
||
"value": 1024
|
||
},
|
||
"gravity": {
|
||
"name": "重力方向和大小",
|
||
"desc": "重力方向和大小",
|
||
"type": "array<float, 2>",
|
||
"value": [0, 0]
|
||
}
|
||
}
|
||
},
|
||
"emitter": {
|
||
"name": "发射器",
|
||
"desc": "发射器设置",
|
||
"type": "Emitter",
|
||
"value": {
|
||
"rate": {
|
||
"name": "发射速率",
|
||
"desc": "发射速率,每秒多少个",
|
||
"type": "uint",
|
||
"value": 20
|
||
},
|
||
"shape": {
|
||
"name": "发射区域类型",
|
||
"desc": "发射区域类型(point、circle、box、line)",
|
||
"type": "string",
|
||
"value": "circle"
|
||
},
|
||
"offset": {
|
||
"name": "位置偏移",
|
||
"desc": "位置偏移",
|
||
"type": "array<float, 2>",
|
||
"value": [0, 0]
|
||
},
|
||
"size": {
|
||
"name": "区域大小",
|
||
"desc": "区域大小(半径)",
|
||
"type": "array<float, 2>",
|
||
"value": [100, 100]
|
||
},
|
||
"offset1": {
|
||
"name": "位置偏移1,作为line模式的结束点",
|
||
"desc": "位置偏移1,作为line模式的结束点",
|
||
"type": "array<float, 2>",
|
||
"value": [0, 0]
|
||
}
|
||
}
|
||
},
|
||
"node": {
|
||
"name": "粒子参数",
|
||
"desc": "粒子参数",
|
||
"type": "Node",
|
||
"value": {
|
||
"lifetime": {
|
||
"name": "存活时间(范围)",
|
||
"desc": "存活时间(范围)",
|
||
"type": "array<float, 2>",
|
||
"value": [1, 2]
|
||
},
|
||
"speed": {
|
||
"name": "速度(范围)",
|
||
"desc": "速度(范围)",
|
||
"type": "array<float, 2>",
|
||
"value": [100, 200]
|
||
},
|
||
"angle": {
|
||
"name": "方向角度(范围)",
|
||
"desc": "方向角度(范围)",
|
||
"type": "array<float, 2>",
|
||
"value": [0, 360]
|
||
},
|
||
"alpha": {
|
||
"name": "透明度(范围)",
|
||
"desc": "透明度(范围)",
|
||
"type": "array<float, 2>",
|
||
"value": [1.0, 0]
|
||
},
|
||
"color_beg": {
|
||
"name": "起始颜色(RGB)",
|
||
"desc": "起始颜色(RGB)",
|
||
"type": "array<float, 3>",
|
||
"value": [1.0, 1.0, 1.0]
|
||
},
|
||
"color_end": {
|
||
"name": "结束颜色(RGB)",
|
||
"desc": "结束颜色(RGB)",
|
||
"type": "array<float, 3>",
|
||
"value": [1.0, 1.0, 1.0]
|
||
},
|
||
"scale_x_beg": {
|
||
"name": "起始缩放比例x轴(范围)",
|
||
"desc": "起始缩放比例x轴(范围)",
|
||
"type": "array<float, 2>",
|
||
"value": [1.0, 1.0]
|
||
},
|
||
"scale_x_end": {
|
||
"name": "结束缩放比例x轴(范围)",
|
||
"desc": "结束缩放比例x轴(范围)",
|
||
"type": "array<float, 2>",
|
||
"value": [1.0, 1.0]
|
||
},
|
||
"scale_y_beg": {
|
||
"name": "起始缩放比例y轴(范围)",
|
||
"desc": "起始缩放比例y轴(范围)",
|
||
"type": "array<float, 2>",
|
||
"value": [1.0, 1.0]
|
||
},
|
||
"scale_y_end": {
|
||
"name": "结束缩放比例y轴(范围)",
|
||
"desc": "结束缩放比例y轴(范围)",
|
||
"type": "array<float, 2>",
|
||
"value": [1.0, 1.0]
|
||
},
|
||
"rotate_speed":{
|
||
"name": "旋转速度(范围)",
|
||
"desc": "旋转速度(范围)",
|
||
"type": "array<float, 2>",
|
||
"value": [0.0, 0.0]
|
||
},
|
||
"rotate_angle":{
|
||
"name": "初始旋转角度(范围)",
|
||
"desc": "初始旋转角度(范围)",
|
||
"type": "array<float, 2>",
|
||
"value": [0.0, 0.0]
|
||
},
|
||
"rotate_to_dir":{
|
||
"name": "旋转至运动方向",
|
||
"desc": "旋转至运动方向(启用后,其他旋转控制失效)",
|
||
"type": "bool",
|
||
"value": false
|
||
}
|
||
}
|
||
}
|
||
}
|
||
} |