local node = display.newLayer()
local tmp = ccui.Layout:create():addTo(node):onTouch(function() print(“111111”) end)
node:registerScriptTouchHandler(function() return true end,false, -1, true)
node:setTouchEnabled(false)
cc.Director:getInstance():setNotificationNode(node)
这样可以虽然可以避免场景上的按钮响应touch事件,但是如果tmp对象同样也不能影响touch事件了
看了下ccui.layout也不能设置touchpriority,这样的话,如果想要让他响应事件需要怎么处理?