- Published on
触摸穿透
- Authors

- Name
- Muzzik(马赛克)
- 3.4 之前:
this.node.eventProcessor.touchListener.setSwallowTouches(false)
- 3.4 及之后
// event_ 类型: cc.EventTouch | cc.EventMouse
// 触摸穿透
event_.preventSwallow = true
// 拦截事件
event_.propagationStopped = false

this.node.eventProcessor.touchListener.setSwallowTouches(false)
// event_ 类型: cc.EventTouch | cc.EventMouse
// 触摸穿透
event_.preventSwallow = true
// 拦截事件
event_.propagationStopped = false