button interactable属性和node active的问题

首先定义一个节点active为false 上面挂了一个button 这时我getcompotent将button的interactable设为false 然后我再设置node的active为true,就设置不了了。。。 默认把node的active设为true 然后在onload中设为false就可以

按理来说 我就算 this.node.getComponent(cc.Button).interactable = false;这行代码为生效 也不应该影响我把node的active设为true啊

打扰了 自己的问题