이 페이지에서

Layer QML Type

레이어는 어떤 엔티티가 렌더링될지 필터링하는 방법을 제공합니다. 더 보기...

Import Statement: import Qt3D.Render 2.12
In C++: QLayer
Inherits:

Component3D

Status: Deprecated

이 유형은 더 이상 사용되지 않습니다. 새로운 코드에서는 이 유형을 사용하지 않는 것을 강력히 권장합니다.

속성

상세 설명

레이어는 FrameGraph의 엔티티 트리( LayerFilter )와 연동하여 작동합니다.

재귀(recursive) 속성을 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.