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

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

261. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 66%]

...this.__mouseMove); this.bmp.on(Laya.Event.MOUSE_UP, this, this.__mouseUp); console.log(this.pos0.x); } __mouseMove(e:Event){ this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; if(Utils3D.getThis.getDistance(this.pos0,this.pos1)>10){ this.bmp.graphics.drawLine(this.pos0.x,this.pos0.y,this.po...

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

262. 翻译成JS后在chrome调试面板有报错,该如何在原项目定位? [ 66%]

...同来自:  参考方法如下:  F12打开调试面板,在下方的Console会有报错信息  (如果找不到报错面板,请点击调试面板的右上角红色X或者>_) 以下三种方式可显示报错信息面板Console 点击红色报错信息末尾灰色字体,会自动调...

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

263. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 66%]

... Scene.__proto.renderSubmit (http://127.0.0.1:55942/game/code.js:81631:42) console.error errorReport @ WAGame.js:3 thirdErrorReport @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ WAGame.js:8 (anonymous) @ WAGame.js:4 a @ gamePage.html:1 window.onerror requestAnimationFrame (async) wxRequestAn...

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

264. Oppo加载.ls资源错误 [ 66%]

...ddChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { console.log("当前进度:", progress) },null,false), Laya.Scene );07-11 16:53:45.923 30921-30972/? E/jswrapper: [ERROR] Failed to invoke _runtime_require, location: /home/game/jenkins/workspace/SafeBuild/XGame/instant-game-c...

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

265. 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? [ 66%]

...片了  直接附上 上图红框内的修改  if (Browser.onMiniGame){ console.log(1); tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ console.log(2); tSound=new soundClass(); tSound.load(url); if (Browser.onMiniGame){ Loader.cacheRes(url,...

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

266. 请问如何使我的自定义类UIDropBox继承Laya.Sprite? [ 66%]

...his.txt = this.getTextFeild(); this.txt.y = 50; this.txt.text = 'aasassa'; console.log(this.addChild);//undefined console.log(this._super);//undefined this.addChild(this.txt); } Laya.class(UIDropBox, "UIDropBox", Sprite); UIDropBox.prototype = { getTextFeild: function () { var text = new Text(); tex...

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

267. ja语言怎么样创建一个工具类在其他地方调用 [ 66%]

..._", _super); var _proto = Load_.prototype; _proto.run_Fast = function () { console.log("逻辑处理"); } return Load_; })(Laya.Sprite);我的代码,但是下面的继承位置Laya.Sprite这里不写会报错,我想请教下,我这个类仅有算法,应该怎么样写。 2018-07-05 添加评...

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

268. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 65%]

...); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo",stageWidth*0.8,stageHeight*0.6,stageWidth*0.75,stageHeight*0.6,1...

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

269. LayaBox进阶之UI管理类 [ 65%]

... this.onInit(); this.onShow();  Laya.timer.frameLoop(1, this, ()=>{ // console.info(this); this.onUpdate(); }); }  /******************************************************************************** * Node ********************************************************************************/ _proto = ...

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

270. ipad 声音管理无法暂停继续播放,只能从头开始,pc端正常,代码如下 [ 65%]

...e;             this._btnPlaySound.visible = false;             console.log(this.soundMan.resume);             if (this.playBoo) {                 this.soundMan.play();                 this.playBoo = false;             }else {                 this.sound...

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