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

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

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

...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

2. 点击区域问题 [ 74%]

... 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

3. 2.3.0beta 各种bug [ 74%]

...情包,会卡屏   //文字输出为表情的时候报错兼容  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

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

....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

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

...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

6. 按钮旋转 点击区域 [ 70%]

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

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

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

...面是之前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

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

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

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

9. matter 2d 碰撞检测 [ 64%]

...人 冰水blue 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 求指点3d射线碰撞和UI点击穿透的问题 matter中layasprite怎么改变图片大小? matter 物理引擎 laya2.0 3d物理碰撞穿透...

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

10. 3D模型旋转问题,鼠标移动之后,根据按下移动的X坐标差值判断左右旋转,但是会越转越快,请问是什么问题? [ 62%]

...人 somnusdear 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 招聘:H5游戏开发 坐标:深圳南山 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定义!这是为什么? ...

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