ParticleGroup QML Type
用于为逻辑粒子组设置属性。更多...
| Import Statement: | import QtQuick.Particles |
属性
- duration : int
- durationVariation : ParticleSystem
- name : string
- system : ParticleSystem
- to : ParticleSystem
详细说明
此元素允许您为粒子组设置定时过渡效果。
您还可以使用此元素将与逻辑粒子组相关的粒子系统元素进行分组。设置为 ParticleGroup 直接子元素的发射器、影响器和绘制器将自动应用于该逻辑粒子组。轨迹发射器将自动跟随该组。
如果某个组未定义 ParticleGroup 元素,则该组将正常运行,就像未设置任何过渡属性一样。
属性文档
duration : int
该组尝试进行状态转换前的等待时间(以毫秒为单位)。
durationVariation : ParticleSystem
该组中每个粒子的过渡周期持续时间变化范围的最大值(以毫秒为单位)。
默认值为零。
name : string
这是粒子组的名称,也是其他元素通常用来指代该组的名称。
如果元素引用了一个尚未明确创建ParticleGroup 的名称,它仍将正常工作(即该组未指定任何过渡效果)。如果您无需为该组分配基于持续时间的过渡效果,则无需创建名为ParticleGroup 的过渡(尽管您可以创建)。
system : ParticleSystem
这是将包含该组的系统。
如果ParticleGroup 是ParticleSystem 的直接子节点,它将自动与该 相关联。
to : ParticleSystem
该组有效的加权过渡列表。
如果选定的过渡仍属于该组,则在尝试下一次过渡之前,将再经过另一个时长(±最多durationVariation )毫秒。
© 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.