In questa pagina

EntityLoader QML Type

Consente di caricare dinamicamente un sottoalbero di entità. Maggiori informazioni ...

Import Statement: import Qt3D.Core 2.12
Inherits:

Entity

Status: Deprecated

Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.

Proprietà

Descrizione dettagliata

Un EntityLoader offre la possibilità di caricare un insieme predefinito di entità da un file sorgente QML. L'EntityLoader stesso è un'entità e l'albero delle entità caricato viene impostato come figlio del caricatore. È possibile accedere alla radice dell'albero delle entità caricato tramite la proprietà EntityLoader::entity.

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

Documentazione delle proprietà

entity : QtQml::QtObject [read-only]

Contiene la radice dell'albero delle entità caricato.

Questa proprietà consente di accedere al contenuto del caricatore. Fa riferimento a un oggetto Entity valido se la proprietà status è uguale a EntityLoader.Ready; in caso contrario, è uguale a null.

source : url

Contiene l'URL di origine.

status : Status

Contiene lo stato del caricatore di entità.

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