3.3.1 鼠标点击事件不回调 问题讲解

使用的 3.3.1 按照官方文档 写的代码
this.node.on(Node.EventType.MOUSE_UP, function (event) {

        console.log('Mouse down');

    }, this);

}

将脚本挂在空节点上 失效,是因为空节点的默认Layer 不正确。 修改一下就可以解决的。 新人从2.4 过度到3.0 开发2D的时候容易出现这个错误