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

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

81. 微信小游戏报错 the .lh file root type must be Scene [ 83%]

...) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:62629/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:62629/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at L...

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

82. IDE UI编辑器找不到 BitmapFont [ 83%]

...载的方法 Monica • 2017-10-18 16:14 @Zzz18815519:预加载就是Laya.loader.load() Zzz18815519 • 2017-10-18 16:17 用Laya.loader.load怎么获得Laya.BitmapFont对象进行命名和注册 Zzz18815519 • 2017-10-18 16:19 Laya.loader.getRes("xxx.fnt")这种方式吗? Monica • 201...

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

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

...Mode="horizontal"; //加载FGUI中的文件 var ProgressBar,resArray; Laya.loader.load([ {url:"res/Public.fui",type:laya.net.Loader.BUFFER}, {url:"res/Public@atlas_ucn9w.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas_ucn90.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas0.png",type...

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

84. 连续读取多个本地json文件 [ 82%]

...取多个本地json文件 onAwake(): void { console.log("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON); } //读...

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

85. 【紧急】clearRes清理缓存后,再加载图片会有延时显示问题 [ 82%]

...缓存后,再加载图片会有延时显示问题 我想咨询一下: loader.clearRes()清理指定资源地址的缓存后,用loader.load 加载不回来了吗?为何再次加载同一图片显示时有延迟?   http://m.infinistudio.cn/test/nestle/ 点击1,再点击2, 再点击1...

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

86. TypeScript Json 数据解析 [ 82%]

...容 { "name":"zzy" } 第一种方式 private on2DComplete(): void { Laya.loader.load("zxc.json", Laya.Handler.create(this,this. onLoadConfigComplete),null,Laya.Loader.JSON); } wayPoints:JSON; private onLoadConfigComplete(): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(...

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

87. protobuffer加载失败 [ 82%]

...资源地址使用中括号 )加载 .proto 文件失败:     Laya.loader.load(["res/protobuf/user.proto"], Handler.create(this, onAssetsLoaded)); 错误提示如下: [warn]Retry to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto [error]Failed to load: E:/LayaBox/ProtobufLoadTe...

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

88. 有时候加载一大堆资源的时候某个个别图片资源加载失败如何处理 [ 81%]

...的资源地址。</p>          * <p>因为返回值为 LoaderManager 对象本身,所以可以使用如下语法:Laya.loader.load(...).load(...);</p>          * @param    url            要加载的单个资源地址或资源信息数组。比如:简...

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

89. 关于资源加载Laya.loader的问题 [ 81%]

关于资源加载Laya.loader的问题 目前laya加载资源一般是用这种处理方式: Laya.loader.load(res, new Handler(caller, callBack)); 这里隐藏了一个问题,就是caller 被 Laya.loader 内某个成员持有引用,加载完成触发callBack后才释放。 如果网络较差...

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

90. 关于多个小动画打包到一个图集动画的问题 [ 81%]

...看下上面的链接! JianHao • 2017-04-18 10:59 //加载图集 Laya.loader.load("res/atlas/hero.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) //先把四张小图拿出来 var hero_down1=Laya.loader.getRes("hero/hero_down1.jpg"); var hero_down2=Laya.loade...

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