Particle QML Type
表示由发射器和作用器操控的粒子。更多...
| Import Statement: | import QtQuick.Particles |
属性
- alpha : real
- autoRotate : bool
- ax : real
- ay : real
- blue : real
- currentSize : real
- endSize : real
- green : real
- initialAX : real
- initialAY : real
- initialVX : real
- initialVY : real
- initialX : real
- initialY : real
- lifeLeft : real
- lifeSpan : real
- red : real
- rotation : real
- rotationVelocity : real
- startSize : real
- t : real
- update : bool
- vx : real
- vy : real
- x : real
- xDeformationVectorX : real
- xDeformationVectorY : real
- y : real
- yDeformationVectorX : real
- yDeformationVectorY : real
详细说明
粒子元素始终由ParticleSystem 在内部进行管理,无法在QML中创建。不过,有时它们会通过信号对外暴露,以便对粒子状态进行任意修改
属性文档
alpha : real
ImageParticle 可以绘制彩色粒子。此时,alpha 将作为应用于源图像的颜色的透明度通道。
数值范围为 0.0 到 1.0。
autoRotate : bool
如果 autoRotate 为 true,则粒子的旋转将设置为朝向移动方向,并叠加来自 rotation 或rotationVelocity 属性的任何旋转。
ax : real
粒子的瞬时x向加速度。
ay : real
粒子的瞬时y方向加速度。
blue : real
ImageParticle 可以绘制彩色粒子。此时,蓝色将作为应用于源图像的颜色中的蓝色通道。
数值范围为 0.0 到 1.0。
currentSize : real
粒子的当前大小(currentSize),根据当前时间(currentTime)在startSize 和endSize 之间进行插值。
endSize : real
粒子在生命周期结束时的像素尺寸。如果该值小于 0,则不予考虑,粒子在整个生命周期内将保持其startSize 值。
green : real
ImageParticle 可以绘制彩色粒子。此时,绿色将作为应用于源图像的颜色的绿色通道。
数值范围为 0.0 到 1.0。
initialAX : real
粒子在生命周期开始时的x方向加速度。
该模拟方法更倾向于修改初始值,而非在特定时刻确定并修改数值。请在 CustomEmitters 中修改初始值,而非当前值。
initialAY : real
粒子在生命周期开始时的y方向加速度。
该模拟方法更倾向于修改初始值,而非在特定时刻确定并修改数值。请在 CustomEmitters 中修改初始值,而非当前值。
initialVX : real
粒子在生命周期开始时的x方向速度。
该模拟方法更倾向于修改初始值,而非在特定时刻确定并修改数值。请在 CustomEmitters 中修改初始值,而非当前值。
initialVY : real
粒子在生命周期开始时的y方向速度。
该模拟方法更倾向于修改初始值,而非在特定时刻确定并修改该值。请在 CustomEmitters 中修改初始值,而非当前值。
initialX : real
粒子生命周期开始时的 x 坐标。
该模拟方法更倾向于修改初始值,而非在特定时间点确定并修改该值。请在 CustomEmitters 中修改初始值,而非当前值。
initialY : real
粒子生命周期开始时的 y 坐标。
该模拟方法更倾向于修改初始值,而非在特定时刻确定并修改该值。请在 CustomEmitters 中修改初始值,而非当前值。
lifeLeft : real
粒子在当前时刻剩余的生存时间(以秒为单位)。
lifeSpan : real
粒子将存活的时间(以秒为单位)。
red : real
ImageParticle 可以绘制彩色粒子。此时,红色将作为应用于源图像的颜色中的红色通道。
数值范围为 0.0 到 1.0。
rotation : real
粒子图像在其生命周期开始时顺时针旋转的度数。
rotationVelocity : real
粒子图像在存活期间每秒顺时针旋转的度数。
startSize : real
粒子图像在生命周期开始时的像素大小。
t : real
粒子诞生时,自模拟开始以来经过的时间(以秒为单位)。
update : bool
在“影响器”内部,只有当 update 设置为 true 时,对粒子所做的更改才会生效。
vx : real
粒子的当前x方向速度。
vy : real
粒子的当前 y 方向速度。
x : real
粒子的当前 x 坐标。
xDeformationVectorX : real
沿 X 轴方向的变形向量的 x 分量。`ImageParticle ` 可在非正方形形状上绘制粒子。它会将纹理矩形绘制在由 x 和 y 变形向量绘制的平行四边形上。
xDeformationVectorY : real
沿 X 轴方向的变形向量的 x 分量。`ImageParticle ` 可以在非正方形形状上绘制粒子。它会将纹理矩形绘制在由 x 和 y 变形向量绘制的平行四边形上。
y : real
粒子的当前 y 坐标。
yDeformationVectorX : real
沿 X 轴方向的变形向量的 y 分量。ImageParticle 可以在非正方形形状上绘制粒子。它会将纹理矩形绘制在由 x 和 y 变形向量构成的平行四边形上。
yDeformationVectorY : real
沿 Y 轴方向的变形向量的 y 分量。ImageParticle 可以在非正方形形状上绘制粒子。它会将纹理矩形绘制在由 x 和 y 变形向量构成的平行四边形上。
© 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.