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

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

251. 使用Laya.loader.create加载3d资源,如果出错次数超过最大线程数将无法继续加载资源 [ 66%]

...Manager 则也无法时LoaderManager中的_loaderCount数值减小,如果this._loaderCount >=this.maxLoader,则无法再下载文件 附件 : --> 2017-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Mo...

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

252. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 66%]

...the .lh file root type must be Scene,please use other function to  load  this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to  load  this file.     at MyScene.__proto.onAsynLoaded (http://127.0.0.1:59022/game/code....

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

253. 部分IOS机型在加载mp3音频文件时出错,资源加载异常 [ 66%]

...    ];         Laya.loader.load(resArray, Laya.Handler.create(this, () => { this.OnLoaded() }), null, Laya.Loader.ATLAS);     }在IOS部分机型,如苹果8上,会出现资源加载出错,截图如附件一所示。 Load(): void {         var resArray: Array<any&g...

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

254. sprite 设置为静态变量后,无法从舞台移除 [ 66%]

...mage("background.jpg"); Laya.stage.addChild(sp); Laya.stage.on(Event.CLICK,this,onClick); function onClick():void { // TODO Auto Generated method stub Laya.stage.off(Event.CLICK,this,onClick); Laya.stage.removeChild(sp); Loader.clearRes("background.jpg"); sp.destroy(); } } } } 2016-09-05 0 0 分享 ...

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

255. Laya3D场景加载问题 [ 66%]

...ctor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         let test = Laya.Loader.getRes("gate/Conventional/Test.ls")         let scene =...

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

256. 打APK后加载unity导出资源出错 [ 66%]

...写的是 var path="map/mapitem/"+mdai.mapName+"1.lh";         if(this.PRINT_LOG){             console.log("准备读取区域"+curIndex+" 的 路径: "+path+"地图");         }         Sprite3D.load(path,Handler.create(null,function(sp){             ...

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

257. 请问在设计模式下制作的UI页面,到底怎么在代码里使用???官方教程不一样 [ 66%]

...las/ListPage.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas     附件 : --> 2017-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

258. HttpRequest如何发送JSON数据 [ 66%]

...new laya.net.HttpRequest();         logReq.once(Laya.Event.COMPLETE,this,this.onComplete);         logReq.send("http://127.0.0.1:3001/login", "username: 'lxd', password: 'lxd'",         'post', "json", null); 服务端无法获取数据 2017-09-06 4 条评论 免费帖 --> 分...

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

259. 场景切换造成的FPS下降的优化思路请教 [ 66%]

...听的移除,大致如下 /**销毁**/ private function dispose():void { this.removeEvent(); this.removeChildren(); this.removeSelf(); }visible(非可见区域的对象尽量从显示列表移除或者设置visible=false。),设置为visible=false的显示对象,将不会再进行渲染提...

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

260. Laya.SoundManager.playSound报错 [ 66%]

...来自: SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Handler(this, onComplete));  SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete));   https://layaair.ldc.layabox.co ... eDemo 2018-06-14 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 更新...

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