• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0019 秒)

1. sprite点击事件 位置便宜 [ 100%]

...关的链接 提交 5 个回复 Laya_Aaron 赞同来自: 给sprite 设置hitarea 2018-02-05 0 0 分享 微博 QZONE 微信 mason311 赞同来自: let hitArea = new Laya.Rectangle(rect.x-100,rect.y-100,200,200); rect.hitArea = hitArea; 是这样设置吗,还是不可以呢? 2018-02-06 0 0 分享 ...

来源: Laya_社区 发布时间: 20180205

2. 绘制形状时事件不触发 [ 91%]

...6-12-23 15:13 不规则热区的实现:你可以参考下这个 var area:HitArea = new HitArea(); area.hit.drawRect(0, 0, 500, 500, "#ff0000"); area.unHit.drawCircle(250, 250, 50, "#ff0000"); box.hitArea = area; box.mouseEnabled = true; box.on("click", this, onBoxClic...

来源: Laya_社区 发布时间: 20161221

3. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 78%]

...nation-out"; this.guideContainer.addChild(this.interactionArea); this.guideHitArea = new Laya.HitArea(); this.guideHitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); this.guideContainer.hitArea = this.guideHitArea; this.guideContainer.mouseEnabled = true; this.tipContainer =...

来源: Laya_社区 发布时间: 20171222

4. 用graphics画的圆点,点击圆点获取数据,为何反应这么慢,附上demo求解答 [ 73%]

...设置圆的范围和中心点位置呀? Laya_Aaron • 2017-12-13 19:52 hitArea 参照https://ask.layabox.com/question/2871 中心点位置修改 pivotX和 pivotY 属性 melody0529 • 2017-12-14 13:24 @Laya_Aaron:好的,谢谢

来源: Laya_社区 发布时间: 20171213