大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0045 秒)
...啊,你是按下拖动,input = true Anthony随遇 • 2023-08-03 10:51 if (!inst._touchInput) inst.handleMouse(ev, 0); 没有设置成false的代码走不到这了 Laya_phhh • 2023-08-03 11:02 @Anthony随遇:我这边看一哈 Anthony随遇 • 2023-08-03 11:05 麻烦了 Laya_phhh • 2023-08-...
来源: Laya_社区 发布时间: 20230803
...i= 0, len= dt.length; i < len; i += 4) { var alpha = dt[i + 3] / 255.0; if (alpha > 0) { dt /= alpha; dt[i + 1] /= alpha; dt[i + 2] /= alpha; } } //增加结束 ctx.destroy(); ....不变 如果用的压缩库,压缩库里也改一下。 2023-11-28 0 0 分享 微博 QZONE 微信 为什么...
来源: Laya_社区 发布时间: 20231110
.../ src/myOpenDataContext/index.js openDataContext.onMessage(data => { if (data.command === 'render') { // ... 重绘 sharedCanvas } }) 2018-06-11 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 ...
来源: Laya_社区 发布时间: 20180611
...为fairygui依赖laya.core.js,所以最后会调用到laya.core.js中, if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }执行到这段时,报了tex.once不是一个function的错,但是Texture继承自EventDispatcher,有once这个方法...
来源: Laya_社区 发布时间: 20180724
...log("注册功能暂未开放") }); } showDialog(context: string) { // if (this.normalDialog) { // this.normalDialog.close(); // } this.normalDialog = new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog); } } // 弹窗代码 class No...
来源: Laya_社区 发布时间: 20181216
...t.project(position,this._projectionViewMatrix,out); var outE=out.elements; if (out.z < 0.0 || out.z > 1.0){ outE[0]=outE[1]=outE[2]=NaN; }else { outE[0]=outE[0] / Laya.stage.clientScaleX; outE[1]=outE[1] / Laya.stage.clientScaleY; } } 2017-12-29 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20171229
...赋值了。 没时间去仔细改,现在用暴力方式改一下: if (index !== -1){ console.log("SimpleSingletonList:" + element + " has in SingletonList."); this.clear(); } 把状态清空,重新来过,这样可能会对多点触摸有影响,只是说不卡死了。 ...
来源: Laya_社区 发布时间: 20200910
...tter.World.add(engine.world,bodyA); } Function{ for(let i=0;i <5; i++){ if(bodyA.speed != 0){ (?????????????????); } } }代码的主要意思就是这样,缺少的代码请忽略,就是在问号处如何写代码使速度不为0的刚体所绑定的img2执行旋转操作,而速度为0则不...
来源: Laya_社区 发布时间: 20180901
...ew Laya.Loader区别? let json:any = Laya.loader.getRes(this._data.url); if(json) { return; } let load:Laya.Loader = new Laya.Loader(); 这么写 频繁加载会一直报资源重复加载 但是我 Laya.loader.load(xxxxxxxxx) 频繁加载就没事 请问这两者的区别 我如果想用上面的...
来源: Laya_社区 发布时间: 20171213
...Sp); } private MouseWheel(e: Laya.Event) { let xs = this.firstSp.scaleX; if (e.delta > 0) { xs = xs * 1.2; } else { xs /= 1.2; } this.firstSp.scale(xs, xs); } } new GameMain(); 2019-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20190314