InstanceListEntry QML Type
指定InstanceList 中的一个实例。更多内容...
| Import Statement: | import QtQuick3D |
| Since: | Qt 6.2 |
| Inherits: |
属性
- color : color
- customData : vector4d
- eulerRotation : vector3d
- position : vector3d
- rotation : quaternion
- scale : vector3d
详细说明
QML 类型 InstanceListEntry 用于在实例列表中指定一个实例。
所有属性均可设置绑定和动画。修改属性会导致整个实例表被重新计算并上传至 GPU,因此对于包含大量成员的实例列表而言,此操作可能消耗较多资源。
属性文档
color : color
该属性用于指定实例的颜色。
customData : vector4d
该属性用于指定实例的自定义数据。默认情况下不会使用该属性,但会作为INSTANCE_DATA 提供给自定义材质的顶点着色器。
eulerRotation : vector3d
该属性以欧拉向量的形式指定实例的旋转,即一个包含绕 x、y 和 z 轴旋转角度(单位为度)的向量。
position : vector3d
该属性指定了实例的位置。
rotation : quaternion
该属性以四元数的形式指定实例的旋转。
scale : vector3d
该属性通过一个包含沿 x、y 和 z 轴的缩放因子的向量,指定实例的缩放比例。
© 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.