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

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

1. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 100%]

...oginView@atlas0.png",type:laya.net.Loader.IMAGE} ]; var loadcount=resArray.length; function onLoaded() { console.log("进度条"); Laya.stage.addChild(fairygui.GRoot.inst.displayObject); fairygui.UIPackage.addPackage("res/Public"); var ProgressBarPage=fairygui.UIPackage.createObject("Public","Progre...

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

2. WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header [ 87%]

...ou are trying to send If it's larger than 125 bytes you need to encode the length in a different manner i.e you must take the extended payload length into consideration. – Cyclonecode Jul 7 '15 at 10:22 Right, of course, so i need to use the next two (or eight) bytes to store the length instea...

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

3. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 86%]

...                 for (var i = 0, len = toloadPics.length; i < len; i++) {                                 if (changeType) {                                     toloadPics = folderPath + toloadPi...

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

4. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 86%]

...同来自: 微信里面的Function这样定义:function (){if(arguments.length>0&&"return this"===arguments[arguments.length-1])return function(){return e}} Chrome和预览里面的Function这样定义:function Function() { [native code] } 2018-03-07 0 0 分享 微博 QZONE 微信 Lay...

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

5. Laya.loader.load加载位图字体 [ 85%]

...nt")[0].split("/");                 var fontName=tArr[tArr.length-1];                 Text.registerBitmapFont(fontName,bFont);                 this._data=bFont;                 this.complete(this._data);             }    ...

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

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

...ull, 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, 25.0), "TERRAIN"); //setMeshParams(sprite, Laya.St...

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

7. 分享,扩展Laya.Text组件实现简单的富文本 [ 81%]

...._text) password = false; var x = 0, y = 0; var end = Math.min(this._lines.length, visibleLineCount + begin) || 1; let color = this.color; let underline = this.underline; let bold = this.bold; for (var i = begin; i < end; i++) { var lines = this.typeLines[i]; var _word; if (this.align == "right")...

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

8. swf预加载问题 [ 80%]

...vent.LOADED,this,load); } public function load(e:* = null):void{ if(assets.length > 0){ mc.load(assets.shift()); }else{ onAssetsLoaded(); } } private function onAssetsLoaded(e:*=null):void { this.event(BEFORLOADERFINISH); } } } 2016-12-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

9. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 78%]

...ng) {             console.log('switchAnimation: ' + this.meshes.length);             let anitemplet = this.anies[name];             for (let mesh of this.meshes) {                 let ani = mesh.getComponentByType(SkinAnimations, 0) as SkinAnimations; ...

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

10. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 78%]

... 0 ? url.substr(0, idx + 1) : ""; for (var i:int = 0, len:int = toloadPics.length; i < len; i++) { toloadPics[i] = folderPath + toloadPics[i]; } } else { //不带图片信息 toloadPics = [url.replace(".json", ".png")]; } for(i = 0;i<toloadPics.length;i++) { var tempAtlasPngUrl:String = toload...

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