このページでは

EntityLoader QML Type

エンティティのサブツリーを動的に読み込む方法を提供します。詳細...

Import Statement: import Qt3D.Core 2.12
Inherits:

Entity

Status: Deprecated

この型は非推奨です。新しいコードでの使用は強くお勧めしません。

プロパティ

詳細な説明

EntityLoader は、QML ソースファイルから事前定義されたエンティティのセットを読み込む機能を提供します。EntityLoader 自体はエンティティであり、読み込まれたエンティティツリーはローダーの子として設定されます。読み込まれたエンティティツリーのルートには、EntityLoader::entity プロパティを使用してアクセスできます。

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

プロパティのドキュメント

entity : QtQml::QtObject [read-only]

読み込まれたエンティティツリーのルートを保持します。

このプロパティを使用すると、ローダーの内容にアクセスできます。statusプロパティの値がEntityLoader.Readyの場合、このプロパティは有効なEntityオブジェクトを参照し、それ以外の場合はnullとなります。

source : url

ソースURLを格納します。

status : Status

エンティティローダーの状態を保持します。

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