InstanceListEntry QML Type

指定InstanceList 中的一个实例 ... 更多...

Import Statement: import QtQuick3D
Since: Qt 6.2
Inherits:

Object3D

属性

详细说明

InstanceListEntry QML 类型用于在实例列表中指定一个实例。

所有属性都可以绑定和动画。更改一个属性会导致整个实例表被重新计算并上传到 GPU,因此这对于有很多成员的实例列表来说可能会很昂贵。

属性文档

color : color

此属性指定实例的颜色。


customData : vector4d

此属性指定实例的自定义数据。默认情况下不会使用,但自定义材质的顶点着色器可以使用INSTANCE_DATA


eulerRotation : vector3d

该属性以欧拉矢量的形式指定实例的旋转角度,即包含绕 x、y 和 z 轴旋转角度(单位:度)的矢量。


position : vector3d

该属性指定实例的位置。


rotation : quaternion

该属性以四元数形式指定实例的旋转。


scale : vector3d

该属性将实例的缩放比例指定为一个向量,其中包含沿 x、y 和 z 轴的缩放因子。


© 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.