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

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

321. webGl 下blendMode = "destination-out";出现黑块的问题 需要怎么解决? [ 52%]

...p" //rendertarget要限制一下大小 要混合的图层.scrollrect = new Rectangle(0,0,browser.clientWidth,browser.clientHeight);   加上这两行试一下   2017-12-23 0 0 分享 微博 QZONE 微信 五六 赞同来自: 圆形有用,方形就没有用了???!这是为什么 2018-11-11...

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

322. matterjs渲染laya的ui [ 52%]

...应该是new Sprite,通过如下方法实现绑定关系 var boxA = Bodies.rectangle(50, 200, 80, 80); var layaSprite:Sprite = new Sprite(); layaSprite.graphics.drawRect( -40, -40, 80, 80, "#ffff00"); boxA.layaSprite = layaSprite;   2018-05-14 0 2 分享 微博 QZONE 微信 liudong95 赞同来自: ...

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

323. 关于getGraphicBounds的代码原理 [ 51%]

...某新版到了GraphicsBounds.as)里面有调用,而且最后都会到Rectangle._getWrapRec去,得到4个点,那么这里对rst的分类处理是什么用的啊? @cuixueying     ------------------------------- 原问题:通过文档和一些实践,我知道了getBounds和getGraphicBo...

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

324. [LayaAirIDE3]laya3.3更新后,之前写好的拖拽地图无法使用 [ 51%]

...不好用了,请帮我看看是什么问题  已提供demo 附件 : --> RectangleTest.zip 2025-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 LayaAir大为 赞同来自: 大宝 、haifei 您好,我们...

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

325. 圆环不跟随 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

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

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

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

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

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

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

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

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

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

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