事件暂停,pauseSystemEvents,设计如此?bug?

节点隐藏再显示,暂停的会自动恢复,引擎就是样设计的么
测试代码
import { _decorator, Component, Node, NodeEventType } from ‘cc’;
const { ccclass, property } = _decorator;

@ccclass('ttttt')
export class ttttt extends Component {

    onLoad() {
        this.node.on(NodeEventType.TOUCH_END, this.test, this)
        setTimeout(() => {
            this.node.active = false;
        }, 2000)
        setTimeout(() => {
            this.node.active = true;
        }, 3000)
    }

    start() {
        this.node.pauseSystemEvents(false);
    }

    test() {
        console.warn('testTouch');
    }

    update(deltaTime: number) {

    }
}

按钮禁用,touch事件还会触发,本来是在interactable属性改变的时候暂停派发,谁知道有这么个坑;
另外附带吐槽一下,按钮禁用,touch事件还能触发这个也是不太能理解

引擎就是这样设计的 节点激活的时候会激活他身上所有的事件, 建议你弄一个最上层的节点来遮挡你的鼠标监听比较合适

enable再pause一下就好了。既然这样设计,api文档也不说明一下。。。

还有个不好用的,就是取消button上的image 勾选,却没法禁用node上绑定的事件

是啊,我上面也说了这个,
我现在就是通过pauseSystemEvents来禁用button的touch事件,结果发现按钮隐藏后再显示,又恢复了。。。