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

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

511. 真机调试 开启子域后 提示出现window is not defined [ 46%]

...工程 bt_rank_call_back(body){   this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; var pl = new Laya.Sprite() pl.graphics.dr...

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

512. native 1.0.2 连不上wss [ 46%]

...cpet msg: " + e.data); }; ws.onerror = function(e) { alert("error: " + e); console.log(e) }; </script> </body> </html>   这是app设置的url所对应的html文件,在web端是能连上socket的,app里面就连不上 (简单起见这里直接使用原生websocket,使用la...

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

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

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

514. 请教下微信小游戏的内存和数据缓存? [ 46%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 导微信小程序报错window.focus is not a function 请教下微信小游戏的内存和数据缓存? 问题状态 最新活动: 2018-01-22 11:56 浏览: ...

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

515. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 46%]

...text = new Laya.Context();         } private onloadswf():void { // console.log("ssss"); // let mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf"); // Laya.stage.addChild(mc); }     } } new laya.Loader_MultipleType();   2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE ...

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

516. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 44%]

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

517. VR的demo有没有加载3D场景的啊,实在不知怎么加 [ 44%]

....2); sprite3D.once(Laya.Event.HIERARCHY_LOADED, null, function(sprite) { //console.log(scene.numChildren+","+sprite._childs.length); setMeshParams(sprite, Laya.StandardMaterial.RENDERMODE_OPAQUE, new Laya.Vector4(3.5, 3.5, 3.5, 1.0), new Laya.Vector3(0.6823, 0.6549, 0.6352), new Laya.Vector2(25.0, 2...

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

518. 如何获取animation的node节点? [ 44%]

...killAniArray[i]; // 将渲染后的小切片追加到动画中 }catch(e) { console.log('warning: animation in loading'); // 过于频繁加载动画时给予警告 } }) } ani.interval = Math.round(1000/aniProps.mc[options.srcName].frameRate); // 设置动画的帧率 ani.autoPlay = options.autoPlay;...

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

519. stage.clientScaleX/Y这个值有什么用呢? [ 44%]

...ge.scaleMode无论怎么设, 这两个值都是1.....   我在源码里面console发现计算了两次屏幕的缩放比.... 第二次就有我想要的值了....  这是为什么呢?? 附件 : --> 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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

520. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 44%]

...est/1.png" ||data.url == "test/2.png"||data.url == "test/3.png"){ mark ++; console.log("------data.url:" + JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplet...

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