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

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

131. 加载UI为什么总是加载白底 [ 65%]

...; //设置stage颜色s Laya.stage.bgColor = "#ffffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function st...

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

132. 如何加载.lh文件 [ 65%]

...形式加载。或者传入地址数组。即可加载多个模型   Laya.loader.create([ {url:"资源目录/模型名字.lh"}, {url:"同上.lh"},  {url:"同上"},  {url:"同上"}[code]],Handler.create(this,onLoaded)); 2018-05-29 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

133. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 65%]

...s/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/L...

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

134. [0]laya-zip让你的游戏加载速度提升350%!! [ 65%]

...y convention, only resource files in the level-1 directory are loaded Laya.loader.create([{ url: "xx.zip", type:"ZIP"}]) [/size][/code] 如果只需要加载zip包中的部分资源,或者资源路径在多级目录下。可以在constructParams中进行配置,来加载指定文件资源。[size...

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

135. 判断animation是否加载过某个资源 [ 65%]

...ion 的createFrames 使用已经加载的图集缓存动画失败 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2017-08-09 10:08 浏览: 915 关注: 2 人 asdf131 • 2017-08-09 10:33 this.aniTemp.loadAtlas(path, Laya.Handler.create(this, this.lo...

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

136. 微信小游戏怎么加载本地的配置文件 [ 65%]

...nfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; config=laya.net.Loader.getRes("res/config/playerCard.json"); Playe...

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

137. ts如何通过文件集加载的方法预加载声音文件,然后再调用 [ 64%]

...行缓存处理,然后下次播放声音时直接从缓存获取。 Laya.loader.load([{url:"xxx.mp3",type:Loader.SOUND}],Handler.create(this,onComped)) 2016-12-13 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 feini 相关问题 两个...

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

138. 微信小游戏加载 BitmapFont 问题 [ 64%]

..."./js/dom_parser"); require("code.js");在加载这个文件的时候 Laya.loader.load([{ url: "button_font.fnt" }], Handler.create(null, onLoaded)); 图片里的 type="font",最终执行的 tempData=data.data; tempData 直接就是button_font.fnt里面内容的字符串类型MiniLoader.onReadNati...

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

139. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 63%]

...";  var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0);  Laya.stage.ad...

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

140. 进行预加载,每次进入游戏都会重新加载一次 [ 62%]

...ang + "/shz_nav.png"。。。。。。。】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress, null, false), Laya.Loader.IMAGE); 但是每次进入都会重新慢慢在加载一次 声音也是一样 2017-02-16 添加评论 免费帖 --> 分享 微...

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