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

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

51. 批量预加载如果是图片或者声音类型,不会触发加载错误事件 [ 81%]

...如果是图片或者声音类型,不会触发加载错误事件 用Laya.loader批量加载图片或者声音并指定加载类型时,如果加载错误,并不会触发错误事件。   Laya.loader.on(Laya.Event.ERROR, this, function(){ console.log("err"); }); Laya.loader.load([{url:"res/gene...

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

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

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

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

53. 加载.lh文件报错 [ 81%]

...ed at Function.Laya3D._getSprite3DHierarchyInnerUrls (laya.d3.js:15158) at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:15252) at EventHandler.__proto.runWith (laya.core.js:1126) at Loader.__proto.event (laya.core.js:882) at Loader.__proto.complete (laya.core.js:14965) at Loader.__proto.onLoaded (...

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

54. 缓存清除方法clearTextureRes [ 81%]

缓存清除方法clearTextureRes    Loader.clearTextureRes=function(url){             url=URL.formatURL(url);             var arr=laya.net.Loader.getAtlas(url);             var res=arr ? laya.net.Loader.getRes(arr[0]):laya.net.Loader.getRes(url);       ...

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

55. Laya.loader.load 如何同时加载图片数组以及json图集 [ 81%]

Laya.loader.load 如何同时加载图片数组以及json图集 Laya.loader.load([{url: "res/atlas/images/fesh.json", type: Loader.ATLAS}, {url: "res/atlas/images.json", type: Loader.ATLAS},{url: "res/atlas/common.json", type: Loader.ATLAS}, {url: "res/atlas/template/ButtonTab.json", type: Loader.A...

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

56. iphonex系列机型Laya.loader.create没有执行回调,资源加载不完全。 [ 80%]

iphonex系列机型Laya.loader.create没有执行回调,资源加载不完全。 有没有 同学遇到过,iphonex系列机型Laya.loader.create没有执行回调,资源加载不完全。 2020-04-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

57. 请问Laya.loader.load资源缓存在哪里?能不能把这个缓存目录里的资源加入NativeFile白名单? [ 80%]

请问Laya.loader.load资源缓存在哪里?能不能把这个缓存目录里的资源加入NativeFile白名单? 还有一些细节就是,引擎会自动对比白名单里有没有这个资源吗?是没有就去网络动态加载还说说只有把这个路径或者文件加入了白名单...

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

58. 骨骼动画文件.sk 怎么用Laya.loader.load去预加载 [ 80%]

骨骼动画文件.sk 怎么用Laya.loader.load去预加载 2017-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 可以预加载,试下下面的方式:Laya.loader.load(url, Handl...

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

59. laya 音频不支持loader加载 [ 80%]

laya 音频不支持loader加载 如上说的意思是音频文件不能通过网络加载只能放在小游戏本地宝里面吗? 附件 : --> 2018-03-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_...

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

60. Laya.loader.create 加载进度问题 [ 80%]

Laya.loader.create 加载进度问题 我用Laya.loader.create加载.lh模型, function ModelManager() { Laya.loader.create("res/Pipe/Pipe/a.lh", Laya.Handler.create(this, this.onCreateComplete()),Laya.Handler.create(this, this.onAssetsLoading)); } ModelManager.prototype.onCreateComplete = functi...

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