My buttons not clickable after removing/adding to scene!

Hi all.

Today I switched from cocos console to Android Studio. Also I upgraded my cocos2d-x project version to latest. It was a great experience. But after this, buttons in my game became a bit weird.

I mean, I can’t click it after removing and adding again to the scene, no reaction!! Why? Whereas i use setTouchEnabled(true); but the callback is not firing? Why??

Thanks in advance for any help.

1 Like

This has a workaround:

http://discuss.cocos2d-x.org/t/v3-15-1-button-stops-working-after-removechild-and-addchild/37572/3

1 Like

Thanks i solved