DynamicBurst3D QML Type
动态发射器爆发。更多...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.3 |
| Inherits: |
属性
- TriggerMode : enumeration
- amountVariation : int
- enabled : bool
- triggerMode : ShapeType
详细说明
该元素用于定义ParticleEmitter3D 中的粒子爆发。这些爆发是动态的,这意味着它们会在粒子系统运行时进行计算。例如,当发射器移动时,请使用此功能代替EmitBurst3D ,以确保粒子从正确的位置发射。
例如,要在第1秒时发射100个粒子,在第2秒时发射200个粒子:
ParticleEmitter3D {
...
emitBursts: [
DynamicBurst3D {
time: 1000
amount: 100
},
DynamicBurst3D {
time: 2000
amount: 200
}
]
}属性文档
TriggerMode : enumeration
定义突发模式。
| 常量 | 描述 |
|---|---|
DynamicBurst3D.TriggerTime | 当突发事件time 到期时,粒子会被发射出来。 |
DynamicBurst3D.TriggerStart | 当被跟踪的粒子被发射时,该粒子也会被发射。 注意:此 属性仅限于与尾迹发射器配合使用。 注意:在 此模式下 , |
DynamicBurst3D.TriggerEnd | 当被跟随粒子lifeSpan 结束时,这些粒子会被发射出来。注意:此 属性仅限于与轨迹发射器配合使用。 注意:在 此模式下 ,“ |
amountVariation : int
此属性定义了粒子发射量的随机波动。
例如,若要使随机范围在 0 到 10 之间
DynamicBurst3D {
time: 1000
amount: 5
amountVariation: 5
}默认值为0 。
enabled : bool
如果“启用”设置为“false ”,则该爆发不会释放任何粒子。
默认值为true 。
triggerMode : ShapeType
此属性用于定义发光模式。
默认值为TriggerMode.TriggerTime 。
© 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.