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

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

1. 鼠标交互-鼠标交互 [ 100%]

...activeTarget(); createLogger(); } function createInteractiveTarget() { var rect = new Sprite(); rect.graphics.drawRect(0, 0, 200, 200, "#D2691E"); rect.size(200, 200); rect.x = (Laya.stage.width - 200) / 2; rect.y = (Laya.stage.height - 200) / 2; Laya.stage.addChild(rect); //增加鼠标事件 rect....

来源: Laya_示例 发布时间: 20240930

2. 鼠标交互-鼠标交互 [ 99%]

...eInteractiveTarget() { const Event = Laya.Event, Sprite = Laya.Sprite; let rect = new Sprite(); rect.graphics.drawRect(0, 0, 200, 200, "#D2691E"); rect.size(200, 200); rect.x = (Laya.stage.width - 200) / 2; rect.y = (Laya.stage.height - 200) / 2; Laya.stage.addChild(rect); //增加鼠标事件 rect....

来源: Laya2.0_示例 发布时间: 20240930

3. sprite点击事件 位置便宜 [ 96%]

...0 分享 微博 QZONE 微信 mason311 赞同来自: let hitArea = new Laya.Rectangle(rect.x-100,rect.y-100,200,200); rect.hitArea = hitArea; 是这样设置吗,还是不可以呢? 2018-02-06 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 发demo 我给你看一下吧 2018-02-06 0 0 分...

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

4. 点击区域问题 [ 72%]

... 10);         btn_bottom[i].scale(scaleMin, scaleMin);         var rect = new Laya.Rectangle(btnWidth * i + space * (i + 1), Browser.clientHeight - btnHeight - 10, btnWidth, btnHeight);         console.log("rect"+i+":"+rect); //        btn_bottom[i].hitArea = rect;          btn_...

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

5. 2.3.0beta 各种bug [ 72%]

...情包,会卡屏   //文字输出为表情的时候报错兼容  if (rect) {                 if (rect[2] == -1)                     rect[2] = Math.ceil((cri.width + lineWidth * 2) * this.lastScaleX);             }             var dt_w = w != 0 ? w : 1;         ...

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

6. 龙骨skeleton鼠标点击区域的设置 [ 71%]

....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);    2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: 于一个点为中心播放 :      thi...

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

7. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 71%]

...ure = mFactory.buildArmature(1); mArmature.x = 100; mArmature.y = 200; var rect=new Laya.Rectangle(-200,-200,300,300); mArmature.hitArea=rect; Laya.stage.addChild(mArmature); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName("goblin"); mArmature.play(0, false); mArmature.stop()...

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

8. 按钮旋转 点击区域 [ 67%]

...人 a852388396 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 Dialog:屏蔽点击Dialog之外的区域关闭弹框 关于遍历产生的sprite的点击事件,急,大神帮看哈 救命!canvas定位后 点击区域偏移,求大大们解答 求指点3d射线碰撞...

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

9. 求教 颜色滤镜和混合模式使用 [ 66%]

...面是之前flash代码   bitmapData.applyFilter(this._mask, this._mask.rect, zeroPoint, this._colorFilter);   sprite.copyPixels(this._base, this._base.rect, zeroPoint);   sprite.draw(bitmapData, null, null, this._maskBlendMode); 2016-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

10. Sprite对象中的scrollRect如何使用?为什么是undefined [ 63%]

Sprite对象中的scrollRect如何使用?为什么是undefined 2017-05-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 你的代码看不出什么问题,而且我测试也是正常...

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