ScaleAffector3D QML Type | Qt Quick 3D 6.4.2

- Qt 6.4
- Qt Quick 3D
- QML Types
- QtQuick3D.Particles3D
- ScaleAffector3D
- Qt Quick 3D | Commercial or GPLv3

# ScaleAffector3D QML Type

Particle scale affector. More...

Import Statement: | import QtQuick3D.Particles3D
Since: | Qt 6.4
Inherits: | Affector3D

- List of all members, including inherited members

## Properties

- ScalingType : enumeration
- duration : int
- easingCurve : EasingCurve
- maxSize : real
- minSize : real
- type : ScalingType

## Detailed Description

Scale affector scales the particle size based on its lifetime and parameters.

## Property Documentation

ScalingType : enumeration

Defines the scaling type of the affector.

Constant | Description
--- | ---
`ScaleAffector3D.Linear` | The scale is calculated using the easing curve to interpolate between minimum and maximum scale size between duration milliseconds and then continues from the minimum size.
`ScaleAffector3D.SewSaw` | The scale is calculated using the easing curve to interpolate between minimum and maximum scale size between duration milliseconds on a rising edge then continues from maximum to minimum on a falling edge.
`ScaleAffector3D.SineWave` | The scale follows the sine wave. Easing curve is not used.
`ScaleAffector3D.AbsSineWave` | The scale follows the sine wave except negative values are inverted. Easing curve is not used.
`ScaleAffector3D.Step` | The scale stays at minimum size until half of the duration milliseconds have passed then steps directly to the maximum size. Easing curve is not used.
`ScaleAffector3D.SmoothStep` | The scale smootly transitions from minimum to maximum size. Easing curve is not used.

duration : int

This property holds the duration of scaling cycle in milliseconds. The default is 1000.

easingCurve : EasingCurve

This property holds the easing curve providing more fine tuned control on how the scaling occurs. The easing curve is used with `Linear` and `SewSaw` scaling types. The default easing curve provides linear value between [0, 1].

maxSize : real

This property holds the maximum size the affector can scale the particle. The default is 1.0.

minSize : real

This property holds the minimum size the affector can scale the particle. The default is 1.0.

type : ScalingType

This property holds the scaling type of the affector. The default value is `Linear`.