[]sprite添加texture后,sprite无法触发点击事件?
this.item.graphics.drawTexture(Laya.loader.getRes(IMG_RES[this.name]));
Laya.stage.addChild(this.item);
this.item.on(Laya.Event.CLICK, this, () => { this.item.destroy(); });
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
cuixueying
赞同来自:
yplpf
赞同来自:
autoSize=true 就能触发鼠标事件了