全屏遮罩预制件prefab被遮住的按钮能点被击

使用预制件做全屏遮罩弹框为啥被罩住的按钮还能被点击,有什么办法可以解决这个问题

BlockInputEvents
https://docs.cocos.com/creator/manual/zh/ui-system/components/editor/block-input-events.html

可以看看节点的 Layer 是不是 UI。

非常感谢!

该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。