this.camera.render(cc.Canvas.instance.node); 默认是对整个节点进行了截图。想要排除掉部分节点
声明可见性掩码 可以截图的时候再设置不可见的节点,截图完毕再恢复 Cocos Creator 3.8 手册 - 相机