EmitBurst3D QML Type
声明式发射器突发。更多...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.2 |
| Inherits: | |
| Inherited By: |
属性
详细说明
该元素用于定义ParticleEmitter3D 中的粒子爆发效果。这些爆发效果是静态的,即在粒子系统启动时即被计算完成。这比DynamicBurst3D 能提供更优的性能,并且支持在粒子系统时间之外触发爆发(例如,在1000ms时触发爆发,而系统时间从2000ms开始)。
注意:EmitBurst3D 使用粒子系统启动时的发射器属性(位置、旋转等)。对于动态发射器,请改用DynamicBurst3D 。
例如,要在开始时发射 100 个粒子,并在 2 秒时发射 50 个粒子,使两次爆发各持续 200 毫秒:
ParticleEmitter3D {
...
emitBursts: [
EmitBurst3D {
time: 0
amount: 100
duration: 200
},
EmitBurst3D {
time: 2000
amount: 50
duration: 200
}
]
}属性文档
amount : int
此属性定义了在突发期间发出的粒子数量。
默认值为0 。
duration : int
该属性定义了爆发持续时间。默认值为 0,这意味着所有粒子都将在time 开始时爆发。如果设置了持续时间,则粒子的发射将分布在time 到time +duration 之间。
例如,若要在 1000 至 1200 毫秒之间保持 400 的发射速率:
EmitBurst3D {
time: 1000
amount: 80
duration: 1200
}默认值为0 。
time : int
此属性定义了开始发出突发信号时的时间(以毫秒为单位)。
默认值为0 。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.