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

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

131. 关于使用资源版本控制加载出错问题 [ 81%]

...) { var ProResArray = [ {url : "res/atlas/com/loading.atlas" , type : Laya.Loader.ATLAS},                      ]; Laya.loader.load(ProResArray, Laya.Handler.create(this, this.onProLoaded)); }执行上面的步骤 2018-07-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

132. 加载-销毁Texture使用的图片资源 [ 81%]

...; this.aniFly.visible = false; //销毁 Texture 使用的图片资源 Laya.loader.clearTextureRes(this.PathBg); Laya.loader.clearTextureRes(this.PathFly); this.isDestroyed = true; this.txt.text = "恢复"; } }; return GameMain; }()); new GameMain(); })(leo || (leo = {}));namespace leo { import Sprit...

来源: Laya_示例 发布时间: 20260929

133. 模型资源异步加载和预加载 [ 81%]

...("res/room.lh");   //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void{ //实例化加载并创建好的3D对象 var sprite3D:Laya.Sprite3D = Laya.loader.getRe...

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

134. 是不BMFONT不支持多类型资源加载方式? [ 81%]

...式? var assets = []; assets.push( { url: "res/fontWord.fnt", type: Laya.Loader.FONT }); Laya.loader.load(assets, Laya.Handler.create(this, onAssetsLoaded)); function onAssetsLoaded(){ var bitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/fontWord.fnt"); //必出错 }     只要使用...

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

135. 关于loader加载Loader.JSON的一些问题 [ 81%]

关于loader加载Loader.JSON的一些问题 今天在处理本地JSON资源时,发现一个奇怪的问题: Laya.loader.load(resUrl, Laya.Handler.create(this, function (res) { //解析题目 log(res);   //放置方块 }), null, Laya.Loader.JSON); }   代码运行到这老是报错,报错...

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

136. 动画-图集动画 [ 81%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(aniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.Loader.ATLAS); } createAnimation() { const Animation = Laya.Animation; let ani = new Animation(); Laya.stage.addChild(ani); ani.loadAtlas(an...

来源: Laya2.0_示例 发布时间: 20260929

137. 动画图集缓存问题 [ 81%]

...on.loadAtlas接口的第三个参数来缓存的,如果缓存后用 Laya.loader.clearRes(url,true)这样卸载资源,再次缓存同名动画,播放动画就会闪烁。如果用Laya.loader.clearRes(url,false)卸载,播放动画就不会显示,除非缓存之前先Laya.Animation.clearCache...

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

138. 按照打地鼠教程来无法正常加载资源 [ 81%]

...as/ui.atlas"},                 {res:"res/ui/back.png",type:Loader.IMAGE}             ];             Laya.loader.load(resArr,Handler.create(this,this.onLoaded));         }         private function onLoaded():void{             //显...

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

139. 音乐文件能预加载吗 [ 81%]

音乐文件能预加载吗 音乐文件能像图集一样用Loader预加载吗 2018-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Apple 赞同来自: 可以,比如Loader中的url数组加上 {"url":"res...

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

140. 仅在Android微信小游戏下图片错乱 [ 81%]

...小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console....

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