ScaleAffector3D QML Type
粒子级影响因子。更多...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.4 |
| Inherits: |
属性
- ScalingType : enumeration
- duration : int
- easingCurve : EasingCurve
- maxSize : real
- minSize : real
- type : ScalingType
详细说明
“粒径调节器”会根据粒子的寿命和相关参数来调节其粒径。
属性文档
ScalingType : enumeration
定义影响器的缩放类型。
| 常量 | 描述 |
|---|---|
ScaleAffector3D.Linear | 缩放大小通过缓动曲线计算得出,在持续时间为毫秒的时间范围内对最小和最大缩放大小进行插值,然后从最小大小开始继续变化。 |
ScaleAffector3D.SewSaw | 缩放大小通过缓动曲线计算,在持续时间为毫秒的时间段内对最小和最大缩放大小进行插值,然后在上升沿从最大值开始,在下降沿向最小值过渡。 |
ScaleAffector3D.SineWave | 缩放遵循正弦波。不使用缓动曲线。 |
ScaleAffector3D.AbsSineWave | 缩放比例遵循正弦波,但负值会被反转。不使用缓动曲线。 |
ScaleAffector3D.Step | 缩放比例保持在最小尺寸,直到持续时间(以毫秒为单位)过半后,直接跳转至最大尺寸。不使用缓动曲线。 |
ScaleAffector3D.SmoothStep | 缩放从最小尺寸平滑过渡到最大尺寸。未使用缓动曲线。 |
duration : int
该属性存储缩放周期的持续时间(单位为毫秒)。默认值为 1000。
easingCurve : EasingCurve
该属性存储easing curve ,用于更精细地控制缩放过程。缓动曲线适用于Linear 和SewSaw 缩放类型。默认缓动曲线在[0, 1]范围内提供线性值。
maxSize : real
该属性存储了影响器可将粒子缩放的最大尺寸。默认值为 1.0。
minSize : real
该属性存储了影响器可将粒子缩放到的最小尺寸。默认值为 1.0。
type : ScalingType
该属性存储了影响器的缩放类型。默认值为Linear 。
© 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.