[]按钮旋转 点击区域
现在我遇到一个问题 我 的图片 做了点击功能 当我旋转后, 点击区域没有 跟着旋转走 我们用了 sprite 图片,然后 设置 pivotToCenter, 并且 setMouseDownHandler: function (context, handler) {
this.on(this.EVENT.MOUSE_DOWN, context, handler);
},
setMoveHandler: function (context, handler) {
this.on(this.EVENT.MOUSE_MOVE, context, handler);
},
setMouseUpHandler: function (context, handler) {
this.on(this.EVENT.MOUSE_UP, context, handler);
},该按钮实现这功能, 按钮旋转后 点击区域不一致
我们使用的 layaair js库文件做的
this.on(this.EVENT.MOUSE_DOWN, context, handler);
},
setMoveHandler: function (context, handler) {
this.on(this.EVENT.MOUSE_MOVE, context, handler);
},
setMouseUpHandler: function (context, handler) {
this.on(this.EVENT.MOUSE_UP, context, handler);
},该按钮实现这功能, 按钮旋转后 点击区域不一致
我们使用的 layaair js库文件做的
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
a852388396
赞同来自:
Laya_XS
赞同来自: