本页内容

NoPicking QML Type

当 FrameGraph 分支中存在 NoPicking 节点时,这将阻止渲染方面对该分支执行拾取选择。更多...

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

FrameGraphNode

Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

详细说明

当禁用时,NoPicking 节点不会阻止拾取操作的执行。因此,切换 enabled 属性是使 NoPicking 节点生效或失效的一种方式。

在 FrameGraph 中使用多个子视口时,NoPicking 可用于防止重叠视口或非可视视口之间的拾取冲突。它还可以作为一种优化手段,避免为隐藏视口或场景中无需进行拾取操作的部分执行不必要的工作。

Viewport {
    CameraSelector {
        NoPicking {
            ClearBuffers {
                buffers: ClearBuffers.ColorDepthBuffer
                NoDraw { } // Prevents from drawing anything
            }
            RenderPassFilter {
                ...
            }
            RenderPassFilter {
                ...
            }
        }
    }
}

另请参阅 ObjectPicker 、RayCaster 以及ScreenRayCaster 。

© 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.