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

大约有 377 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)

321. 请问物理引擎为什么设置body的透明度无效 [ 52%]

...', xOffset: 116 / 2, yOffset: 98 / 2 - 2 } }   this._body = Matter.Bodies.rectangle(WinWidth / 4, WinHeight / 2,                 75, 70,                 birdOptions);   第一个问题是透明度opacity设置无效 第二个问题: 上面这个是初始化,后面在游戏过程中...

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

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

....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(); } function o...

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

323. ReferenceError: RandomKey is not defined [ 51%]

...eCallback.onHide()"),提示JaveCallback is not defined 为什么new不出Rectangle的类,提示not defined ConchShader is not defined 微信小游戏:Matter is not defined 问题状态 最新活动: 2018-09-12 15:42 浏览: 1012 关注: 2 人 lolololo • 2018-09-12 16:37 我在循环中打印...

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

324. sprite添加click监听事件反应迟钝 [ 51%]

...hitArea drawCir.graphics.drawCircle(0,0,50,"#eeffcc"); drawCir.hitArea=new Rectangle(-50,-50,100,100); drawCir.size(100,100); drawCir.pos(200,200); Laya.stage.addChild(drawCir); drawCir.on(Event.CLICK,this,onDrawCirClick); 2017-09-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

325. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 51%]

...unction onMouseDown(e:Event):void {             spe.startDrag(new Rectangle(0,0,800,800)); } 鼠标点击Sprite报错: Uncaught TypeError: Cannot read property 'startDrag' of undefined 2017-04-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

326. [LayaAir3]带透明边缘的Button控件打包成合图之后显示异常 [ 51%]

...一截   初步定位应该是AutoBitmap创建子纹理的时候,截取Rectangle运算有问题,导致子纹理小了一圈     附件 : --> demo.zip 2025-06-18 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复...

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

327. UI界面加载有哪些回调方法可用 [ 51%]

...peterz3g • 2017-07-20 10:28 getBounds的结果和之前一样,都是0. Rectangle {x: 0, y: 0, width: 0, height: 0} cuixueying • 2017-07-20 10:30 能提供一个简单的例子,我们看下你是怎么写的吗? peterz3g • 2017-07-20 10:43 好的,我总结一下目前遇到的问题,...

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

328. 多重遮罩显示异常 [ 51%]

...ct(0, 0, 1000, 20, '#ccc'); line.rotation = 45; line.scrollRect = new Laya.Rectangle(0, 0, 800, 20); this.panel.addChild(line); } }此时线条没有被panel裁切,完全显示出来,拖动panel,线条会出现消失问题   附件 : --> ClipDemo.rar 2021-04-27 添加评论 免费帖 --> 分...

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

329. 圆不跟谁 sprite 一起缩放? [ 51%]

...(Browser.width, Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya.Sprite; private _pointList : Point[]; private _rootSp : Laya.Sprite;  public CreateCircle() { this._rootSp = new Laya.Sprite();  this.firstSp = new Laya.Sp...

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

330. 两个碰撞体必须都设置isSensor为false才能监测到碰撞!!! [ 51%]

...? 子木、 ‮ 口一你了亲并‭ • 2019-07-24 23:25 我自己用rectangle实现碰撞了,本来还想偷懒下 姑苏城主 • 2019-07-25 10:50 (lll¬ω¬)这是手动实现碰撞了啊,那要是碰撞类型多了,不还得手动过滤...也太麻烦了吧

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