EntityLoader QML Type

提供了一种动态加载实体子树的方法。更多

Import Statement: import Qt3D.Core 2.9
Inherits:

Entity

Status: Deprecated

属性

详细说明

实体加载器(EntityLoader)提供了从 qml 源文件加载预定义实体集的功能。实体加载器本身就是一个实体,加载的实体树被设置为加载器的子实体。加载的实体树根可通过EntityLoader::entity 属性访问。

EntityLoader {
    id: loader
    source: "./SphereEntity.qml"
}

属性文档

entity : QtQml::QtObject [read-only]

保存加载的实体树根。

该属性允许访问加载器的内容。如果状态属性等于EntityLoader.Ready,它将引用一个有效的实体对象,否则等于空。


source : url

持有源 url。


status : Status

保存实体加载器的状态。


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