issues about ControlButton, ClippingNode, EGLView in JSB

Hi, I’m new to JSB. I got some issues in my test.

  1. cc.EGLView.getInstance().setDesignResolutionSize(designSize.width, designSize.height, cc.RESOLUTION_POLICY.SHOW_ALL); doesn’t work. But I can do it in AppDelegate.cpp. Is it a known issue?

  2. I can add ControlButton in js. But seems I cannot use addTargetWithActionForControlEvents. I don’t see ControlButton test in TestJavascript. Is it not supported in JSB?

  3. ClippingNode doesn’t work. There is no response when I touch ClippingNode Test in TestJavascript.

  4. Whenever there is an error in my js code, I get an empty (black) scene. How can I debug the js? At least I need to know which line causes it…

I’d really appreciate it if anyone can help me

Jerry Li wrote:

  1. I can add ControlButton in js. But seems I cannot use addTargetWithActionForControlEvents. I don’t see ControlButton test in TestJavascript. Is it not supported in JSB?

Same here, I’m getting the error “addTargetWithActionForControlEvents is not a function”

Supported in 3.0, please refer to https://github.com/cocos2d/cocos2d-x/pull/3403 and https://github.com/cocos2d/cocos2d-x/pull/3413

James Chen wrote:

Supported in 3.0, please refer to https://github.com/cocos2d/cocos2d-x/pull/3403 and https://github.com/cocos2d/cocos2d-x/pull/3413

Great ! Is there an automated way to update my cocos2d-x-2.1.4 to 3.0 without rewriting everything