Entity QML Type
Entity 是Node 的子类,它可以聚合多个Component3D 实例,这些实例将指定其行为。更多
Import Statement: | import Qt3D.Core 2.9 |
In C++: | QEntity |
Inherits: | |
Inherited By: | Camera, EntityLoader, FirstPersonCameraController, LevelOfDetailLoader, and OrbitCameraController |
Status: | Deprecated |
属性
- components : list<Component3D>
详细说明
实体本身就是一个空壳。实体对象的行为由其引用的Component3D 对象定义。每个 Qt3D 后端方面都能通过识别实体由哪些组件组成来解释和处理实体。一个方面可能决定只处理由单个Transform 组件组成的实体,而另一个方面则可能专注于MouseHandler 。
另请参阅 Qt3D.Core::Component3D 和Qt3D.Core::Transform 。
属性文档
components : list<Component3D> |
保存Component3D 实例的列表,该列表定义了实体的行为。
© 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.