ParticleGroup QML Type

用于设置逻辑粒子群的属性。更多

Import Statement: import QtQuick.Particles

属性

详细说明

通过该元素,您可以在粒子组上设置定时转换。

您还可以使用此元素来分组与逻辑粒子组相关的粒子系统元素。作为粒子组直接子元素设置的发射器、效果器和绘制器将自动应用于该逻辑粒子组。轨迹发射器(TrailEmitters)将自动跟随该组。

如果未为一个组定义粒子组元素,该组将正常运行,就像未设置任何过渡属性一样。

属性文档

duration : int

组尝试过渡前的时间(毫秒)。


durationVariation : ParticleSystem

组中每个粒子过渡周期持续时间变化的最大毫秒数。

默认值为零。


name : string

这是该粒子组的名称,也是其他元素通常引用的名称。

如果元素引用的名称没有创建明确的ParticleGroup ,它将正常工作(没有为该组指定过渡)。如果不需要为某个组指定基于持续时间的转换,则不需要创建具有该名称的ParticleGroup (当然也可以)。


system : ParticleSystem

该系统将包含组。

如果ParticleGroupParticleSystem 的直接子代,则会自动与之关联。


对该组有效的过渡的加权列表。

如果所选的过渡停留在该组中,则在尝试另一次过渡之前,会再持续一段时间(+/- 最多durationVariation )毫秒。


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