Age QML Type
用于改变粒子年龄。更多
| Import Statement: | import QtQuick.Particles |
| Inherits: |
属性
- advancePosition : bool
- lifeLeft : int
详细说明
年龄影响因子允许您改变粒子在其生命周期中所处的位置。常见的用途是让粒子过早地失效,以便有时间制作出动画。
年龄影响因子有时也被称为 "杀死 "影响因子,因为在默认参数下,它将使所有受其影响的粒子立即失效。
年龄影响因子仅适用于仍然存活的粒子。
属性文档
advancePosition : bool
advancePosition 决定位置、速度和加速度是否包含在影响器的模拟老化中。如果 advancePosition 为假,那么位置、速度和加速度将保持不变,只有其他属性(如不透明度)将在模拟中前进到粒子生命周期中该点的正常位置。当 advancePosition(位置前进)设置为 true 时,位置、速度和加速度也将前进到粒子生命周期中该点的正常位置,使其在屏幕上的位置前进。
默认值为 true。
lifeLeft : int
粒子的生命值。受影响的粒子将在其生命周期中前进到一个点,在这个点上,粒子的剩余寿命将是这个毫秒数。
© 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.