I am using cocos2d-x v3.11.1
I'm having a full screen pop up(
Layer) and this popup has sprite over it. Note: "over it". Not as its child. Let's name this sprite,
Below this pop up, I've my screen containing main layer which has
And this main
Layer has touch listener on it.
I don't want touch to propagate from pop up layer or spriteP to the below residing main Layer and Menu.
setTouchEnabled(false) for this pop up Layer isn't solving the problem.
Note: I don't have any listener on pop up layer?
This good old function is deprecated now but why is it not working
PS: I know I can handle this situation by making check on onBegan touch function but with this also, I can still access the below menu. And I don't want to individually
setEnable(false) my menus when my pop ups are open. So, the same ques, setTouchEnable on this pop layer could have solved the problem.