What should I use to replace setTouchEnable on Cocos2d-x 3.0beta?

In cocos2d-x 3.0 beta, I found :
/*** whether or not it will receive Touch events.
You can enable / disable touch events with this property.
Only the touches of this node will be affected. This “method” is not propagated to it’s children.
@since v0.8.1
**/
CC_DEPRECATED_ATTRIBUTE bool isTouchEnabled() const;
CC_DEPRECATED_ATTRIBUTE void setTouchEnabled(bool value);

So what should I use to replace them?

setTouchEnabled() is no longer required with the new EventDispatcher mechanism.

For reference, see the documentation for EventDispatcher (English, Chinese).

Thank you, it’s very helpful.

Thank you. Very useful!

Thanks, this was really helpful :slight_smile: