由于龙骨动画的显示坐标是负方向
建议开发者可以直接使用hitArea来设置龙骨动画的点击区域
首先通过getBounds获取龙骨动画的width和height(可以通过延迟timer来获取)
然后这是龙骨的hitArea(-width,-height,width,height)
参考示例:
[code] mArmature = mFactory.buildArmature(1);
mArmature.play(0,true);
Laya.stage.addChild(mArmature);
mArmature.pos(300,600);
var rect:Rectangle=new Rectangle(-420,-680,420,680);
mArmature.hitArea=rect;
mArmature.on(Event.CLICK,this,onClick);[/code]