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
。
© 2025 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.