RuntimeLoader QML Type
런타임에 3D 에셋을 임포트합니다. 더 보기...
Import Statement: | import QtQuick3D.AssetUtils |
Since: | Qt 6.2 |
Inherits: |
속성
- bounds : Bounds
- errorString : string
- instancing : Instancing
- source : url
- status : enumeration
상세 설명
런타임로더 유형은 3D 에셋을 QtQuick3D 의 내부 포맷으로 먼저 변환하지 않고 런타임에 소스에서 직접 로드할 수 있는 방법을 제공합니다.
런타임로더는 텍스트(.gltf) 및 바이너리(.glb) 형식의 .obj 및 glTF 버전 2.0 파일을 모두 지원합니다.
속성 문서
bounds : Bounds |
이 프로퍼티는 임포트된 모델 주변의 바운딩 볼륨의 범위를 설명합니다.
참고: 첫 렌더링 전에는 값을 사용할 수 없을 수 있습니다.
errorString : string |
이 프로퍼티에는 최근 로드 작업의 상태를 나타내는 사람이 읽을 수 있는 문자열이 들어 있습니다.
instancing : Instancing |
이 프로퍼티를 설정하면 임포트된 모델이 정상적으로 렌더링되지 않습니다. 대신 인스턴스 테이블에 정의된 대로 여러 인스턴스가 렌더링됩니다.
자세한 내용은 인스턴스 렌더링 개요 문서를 참조하세요.
source : url |
이 프로퍼티에는 3D 에셋이 포함된 소스 파일의 위치가 저장됩니다. 이 속성을 변경하면 현재 에셋을 언로드하고 지정된 URL에서 에셋을 로드하려고 시도합니다.
로드 작업의 성공 또는 실패는 status 로 표시됩니다.
status : enumeration |
이 프로퍼티는 최신 로드 작업의 상태를 저장합니다.
Constant | 설명 |
---|---|
RuntimeLoader.Empty | URL이 지정되지 않았습니다. |
RuntimeLoader.Success | 로드 작업이 성공했습니다. |
RuntimeLoader.Error | 로드 작업이 실패했습니다. 사람이 읽을 수 있는 오류 메시지는 errorString 에서 제공합니다. |
© 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.