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
详细说明
Scale affector(缩放影响器)根据粒子的寿命和参数缩放粒子大小。
属性文档
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
。
© 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.