Hi,
I am using cocos2d-x v3.6 and I am not able to receive touch events for a menu item if it is added to a rendertexture.
My Layer hierarchy is like this:
scene -> gameLayer -> rendertexture -> MenuItem
Any hints how I can forward the touch events of gameLayer to the menu item?
Thanks a lot in advance!
Ok, after some investigations I found out that onTouchBegan and the other callbacks are called but it seems like the touch location is not transformed in a wright way.
I have to add that my rendertexture is scaled.
Do I have to recalculate the touch positions somehow or is some init code missing because the Menu was added to a renderTexture instead of a CCLayer or CCNode?