Entity QML Type
Entity 是Node 的子类,可以聚合多个Component3D 实例,这些实例将决定其行为。更多内容...
| Import Statement: | import Qt3D.Core 2.12 |
| In C++: | QEntity |
| Inherits: | |
| Inherited By: | Camera, EntityLoader, FirstPersonCameraController, LevelOfDetailLoader, and OrbitCameraController |
| Status: | Deprecated |
此类型已弃用。我们强烈建议在新代码中不要使用它。
属性
- components : list<Component3D>
详细说明
就其本身而言,一个实体(Entity)只是一个空壳。实体对象的行为由其引用的Component3D 对象所定义。每个Qt3D后端组件都能通过识别实体的组成部件来解析和处理该实体。某个组件可能只处理由单个Transform 部件组成的实体,而另一个组件则可能专注于MouseHandler 。
另请参阅 Qt3D.Core::Component3D 和Qt3D.Core::Transform 。
属性文档
components : list<Component3D> [read-only]
存储Component3D 实例的列表,这些实例定义了该实体的行为。
© 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.