大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
...libs/laya/src/laya/webgl/WebGL.as @@ -262,8 +262,8 @@ package laya.webgl { if (canvasWidth <= 0 || canvasHeight <= 0) { trace("[error] canvasWidth and canvasHeight should greater than zero"); } - offsetX -= sprite.x; - offsetY -= sprite.y; + //offsetX -= sprite.x; + //offsetY -= sprite.y; //...
来源: Laya_社区 发布时间: 20180612
...onstraint = Matter.MouseConstraint.create(engine, { constraint: { angularStiffness: 0.1, stiffness: 2 }, element: Render.canvas }); Matter.World.add(engine.world, mouseConstraint); render.mouse = mouseConstraint.mouse; } function initWorld() { var ground = Matter.Bodies.rectangle(395, 600, 815, 50, ...
来源: Laya_示例 发布时间: 20260303
...链接 提交 2 个回复 kylin 赞同来自: 找到这两个函数,将if注释掉可以暂时规避这个问题 问题的最终原因我们还在排查,在最终的结果出来之前先暂时规避这个问题吧 注释会稍微影响一些性能 2019-12-16 0 2 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20191216
... img:Image=cell.getChildByName("img")as Image; var data:Object=data[index] if(data.isSelect) { img.gray=true; } else { img.gray=false; } } private function onSlectHandler(index:int):void { my_list.setItem(index,{img:"res/ui/"+index+".png",isSelect:true}); } 2017-03-10 0 2 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20170310
...ei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya.stage.addChild(label); return label; } } } new laya.UI_Label(); ```
来源: Laya2.0_文档 发布时间: 20210715
...inkSpriteToAnimationNode=function(sprite,nodeName,isLink){ if (this._avatar){ 这一步必须要有 avatar 文件,但是用新的2.0插件导出的角色不带avatar文件导致无法挂载,可在GameUI.ts 41行下断点调试进入查看。 var actor = Laya.Loader.getRes("res...
来源: Laya_社区 发布时间: 20191011
...回复 176*****233 赞同来自: 去soundmanager里面playsound方法 // if (!Browser.onMiniGame) // { // tSound= Laya.loader.getRes(url); // } tSound= Laya.loader.getRes(url); 改成这样 2018-05-10 0 0 分享 微博 QZONE 微信 赞同来自: 图在这里 2018-05-10 0 0 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180510
...ent is the only varying element, you should offer a single app to deliver differing content to customers. If you would like to offer this content for purchase, it would be appropriate to use the in-app purchase API. Alternatively, you may consider creating a web app, which looks and behaves similar ...
来源: Laya_社区 发布时间: 20200415
...ent is the only varying element, you should offer a single app to deliver differing content to customers. If you would like to offer this content for purchase, it would be appropriate to use the in-app purchase API. Alternatively, you may consider creating a web app, which looks and behaves similar ...
来源: Laya_社区 发布时间: 20200420
...是根据鼠标移动做drawToCanvas就内存溢出了,LZ怎么解决的 if(this._htmlC){ this._htmlC.destroy(); } this._htmlC = this.zoomBox.drawToCanvas() 2017-11-01 0 0 分享 微博 QZONE 微信 cuixu_xucui 赞同来自: 刚更新到1.7.12就解决了 2017-11-01 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170407