InstanceRepeater QML Type
인스턴스 테이블을 기반으로 컴포넌트를 인스턴스화합니다. 더 보기...
Import Statement: | import QtQuick3D.Helpers |
Since: | Qt 6.4 |
Inherits: |
속성
- instancingTable : Instancing
상세 설명
인스턴스 리피터 유형은 Instancing 테이블을 기반으로 여러 개체를 만드는 데 사용됩니다. 데이터 모델 대신 인스턴싱 테이블을 가져와 position
, scale
, rotation
을 자동으로 적용하는 Repeater3D 하위 유형입니다.
한 가지 사용 사례는 렌더링된 인스턴스와 일치하는 보이지 않는 더미 객체를 생성하여 picking 을 구현하는 것입니다. 성능을 향상시키기 위해 더미 오브젝트는 인스턴스화된 모델보다 더 단순한 지오메트리로 만들 수 있습니다.
예를 들어
InstanceRepeater { instancingTable: myInstanceTable Model { source: "#Cube" pickable: true property int instanceIndex: index // expose the index, so we can identify the instance opacity: 0 } }
InstanceModel 를참조하세요 .
속성 문서
instancingTable : Instancing |
이 속성은 리피터에서 사용하는 인스턴스 테이블을 지정합니다.
© 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.