NoPicking QML Type
当 FrameGraph 分支中存在 NoPicking 节点时,渲染界面将无法对给定分支执行选取选择。更多
Import Statement: | import Qt3D.Render 2.9 |
In C++: | QNoPicking |
Inherits: | |
Status: | Deprecated |
详细说明
禁用时,NoPicking 节点不会阻止执行选取。因此,切换启用属性是使 NoPicking 处于活动或非活动状态的一种方法。
在 FrameGraph 中使用多个子视口时,NoPicking 可以有效防止重叠视口或非可视视口之间的拾取冲突。它还可以作为一种优化手段,防止隐藏视口或场景中不需要拾取的部分出现不必要的工作。
Viewport { CameraSelector { NoPicking { ClearBuffers { buffers: ClearBuffers.ColorDepthBuffer NoDraw { } // Prevents from drawing anything } RenderPassFilter { ... } RenderPassFilter { ... } } } }
另请参阅 ObjectPicker,RayCaster, 和ScreenRayCaster 。
© 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.