InstanceRepeater QML Type
インスタンステーブルに基づいてコンポーネントをインスタンス化します。詳細...
Import Statement: | import QtQuick3D.Helpers |
Since: | Qt 6.4 |
Inherits: |
プロパティ
- instancingTable : Instancing
詳細説明
InstanceRepeater型は、Instancing テーブルに基づいて多数のオブジェクトを作成するために使用される。これはRepeater3D のサブタイプで、データモデルの代わりにインスタンステーブルを受け取り、position
、scale
、rotation
を自動的に適用します。
1つのユースケースは、レンダリングされたインスタンスにマッチする不可視のダミーオブジェクトを作成することで、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.