Layer QML Type
レイヤーは、どのエンティティをレンダリングするかをフィルタリングする手段を提供します。詳細...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QLayer |
| Inherits: | |
| Status: | Deprecated |
この型は非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
- recursive : bool
詳細な説明
レイヤーは、FrameGraph内のLayerFilter と連携して機能します。
再帰プロパティを true に設定することで、レイヤーをエンティティのサブツリーに適用できます。
import Qt3D.Core 2.0
import Qt3D.Render 2.0
Entity {
id: root
components: RenderSettings {
// FrameGraph
Viewport {
ClearBuffers {
buffers: ClearBuffers.ColorDepthBuffer
CameraSelector {
camera: mainCamera
LayerFilter {
layers: [layer1]
}
}
}
}
}
// Scene
Camera { id: mainCamera }
Layer {
id: layer1
recursive: true
}
GeometryRenderer { id: mesh }
Entity {
id: renderableEntity
components: [ mesh, layer1 ]
}
}「LayerFilter」も参照してください 。
プロパティのドキュメント
recursive : bool
そのレイヤーがエンティティのサブツリーにも適用されるかどうかを指定します。
© 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.