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

大约有 40 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

31. 微信小游戏加载资源问题 [ 49%]

...URL(url), Laya.Laya.URL.formatURL(tempAtlasPngUrl), atlasJson); } } else { throw "传递的url没有获取到对应的图集数据信息,请确保图集已经过!"; } } } static postInfoToContext(url, atlaspngUrl, atlasJson) { var postData = { "frames": atlasJson.frames, &quo...

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

32. Laya 绑定显示内容到骨骼动画 [ 48%]

...):void{ let index:number=this.__bindList.indexOf(source); if(index<0){ throw new Error("找不到要删除的绑定内容"); } this.removeChild(source); this.__bindList.splice(index,1); }  private __updateBinds():void{ let source:BindSource; let position:Laya.Point=Laya.Point.create(); for...

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

33. zip更新模式缓存是怎么读取的?? [ 48%]

...urlret!=0 || httpret<200||httpret>=300){ onEvent('downloadError'); //throw 'download error'; }else{ onEvent('downloadOK'); //let md5 = calcmd5(fs_readFileSync(localfile)); //console.log('md5='+md5); let zip = new ZipFile(); if(zip.setSrc(localfile)){ zip.forEach((id,name,dir,sz)=>{ if(!dir)...

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

34. 网络通信 · LayaAir3.0文档 · LAYABOX [ 47%]

...etsLoaded); } private onAssetsLoaded(err: any, root: any): void { if (err) throw err; // 获得一个Message消息类型 var AwesomeMessage: any = root.lookupType("awesomepackage.AwesomeMessage"); console.log(AwesomeMessage); // 初始化数据 var payload: any = { awesomeField: "AwesomeString" }; c...

来源: Laya3.0_文档 发布时间: 20230719

35. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 45%]

...e!=="Scene"){ if (url == "scene/Demo_Interiors.ls"){ console.log(data[0]); throw new Error("Scene: the .lh file root type must be Scene,please use other function to load this file."); } }            var innerResouMap=data[1];     Utils3D._createNodeByJson(this,json,this,innerResouMap);...

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

36. layacmd在centOS 6.5上运行出错 [ 44%]

...rk complete finish. tsc -p . --outDir bin/js internal/child_process.js:323 throw errnoException(err, 'spawn'); ^ Error: spawn EACCES at _errnoException (util.js:1024:11) at ChildProcess.spawn (internal/child_process.js:323:11) at exports.spawn (child_process.js:502:9) at LayaProjectCompiler.compile ...

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

37. [临时解决]bug?加载sk问题 [ 42%]

...这里: laya.core.js的7430行    if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,不使用预加载,就不报错,只是不知道什么时候真的加载完成,那个_template不再为null,我就可以调用play了。   怎么解决?   我上传...

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

38. 导出素材,不拷贝未打包资源 [ 39%]

...a\Roaming\npm\node_modules\layacmd\node_modules\electron\i nstall.js:48   throw err   ^ Error: connect ETIMEDOUT 52.216.84.131:443     at Object._errnoException (util.js:1041:11)     at _exceptionWithHostPort (util.js:1064:20)     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1153:1...

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

39. socket大型项目回调 [ 39%]

...p; type !== Message.TYPE_RESPONSE && type !== Message.TYPE_PUSH) { throw new Error('unkonw message type: ' + type); } buffer.writeByte((type << 1) | (compressRoute ? 1 : 0)); }; } class Protocol{ public static strencode(str:string):Laya.Byte { var buffer:Laya.Byte = new Laya.Byte(); bu...

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

40. 微信小游戏中不能加载proto文件 [ 37%]

...(err, root) { console.log("____________________________________") if (err) throw err;  // Obtain a message type var AwesomeMessage = root.lookup("msg.LoginReq");  // Create a new message var message = AwesomeMessage.create( { openid: "AwesomeString" });  console.log(message.openid) // Verify the ...

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