ParticleSystem QML Type
一个包含粒子绘制器、发射器和影响器类型的系统。更多
Import Statement: | import QtQuick.Particles |
属性
- empty : bool
- particleStates : list<Sprite>
- paused : bool
- running : bool
方法
详细说明
属性文档
empty : bool |
当系统中没有活粒子时,empty 将被设置为 true。
您可以用它来暂停系统,使其不再花费时间进行更新,但您需要恢复系统,以便系统生成更多粒子。
要杀死系统中的所有粒子,请使用 "年龄 "影响因子。
您可以在此属性中定义粒子群的子集,以便为它们提供随机状态转换。
该列表中的每个 QtQuick::Sprite 都会被解释为对应于同名的粒子组。这些精灵中定义的任何转换也将对粒子组生效。此外,在这些精灵中定义的 TrailEmitters、Affectors 和 ParticlePainters 会自动与相应的粒子组关联。
paused : bool |
方法文档
reset() |
丢弃当前存在的所有粒子。
© 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.