egret eui.Group Click event does not trigger

EXML use editing interface, click often find that some events do not take effect, because they were obscured

For example, I want to click on this bus, found the click event does not take effect, this image is obscured busShelter

 

Setting:

busShelter.touchEnabled = false;

bus.touchEnabled = true;

All right.

What if an obstruction is eui.Group it? It is related to the penetration click

Setting:

shelterGroup.touchEnabled = false;

shelterGroup.touchChildren = false;

Guess you like

Origin www.cnblogs.com/caoshufang/p/12179178.html
Recommended