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

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

131. LayaAir 如何读取资源中的txt文件中的内容 [ 86%]

...的txt文件中的内容 var testPath ="res/Test.txt"; console.log( Laya.loader.load(testPath)); console.log(Laya.Loader.getRes(testPath)); 这里打印的是 LoaderManager {retryNum: 1, retryDelay: 0, maxLoader: 5, _loaders: Array(4), _loaderCount: 1…} undefined 并不是文本的内容,求支...

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

132. 请问laya里如何解析json,似乎和AS3的不太一样。 [ 86%]

...自: SONIC3D 、sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON的解析和AS3的是一样的   2016-10-2...

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

133. Loader加载音频如何获取具体加载进度 [ 86%]

Loader加载音频如何获取具体加载进度 Loader加载音频如何获取具体加载进度? 监听 Event.PROGRESS,参数直接返回 1, 监听不到具体的加载进度? 2019-01-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

134. Spine3D渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 86%]

...载Spine动画数据资源(json文件),注意一定要设置为Laya.Loader.SPINE类型,否则不会把json认为是SPINE资源 Laya.loader.load("girl2/mix-and-match-pro.json", Laya.Loader.SPINE).then(() => { // 添加Spine3D渲染器组件到3D精灵节点上 this.spine3D = this.owner.add...

来源: Laya3.0_文档 发布时间: 20260203

135. Laya.loader.create 加载进度问题 [ 86%]

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

136. 引擎自带的图集图片丢失问题 [ 86%]

... 我用js加载完图集后 tArray=[{url:"res/atlas/comp.atlas",type:Laya.Loader.ATLAS}] Laya.loader.load(tArray,Laya.Handler.create(this,onResLoaded()));   里面的button和checkbox提示丢失了。是什么原因??   附件 : --> 2018-03-25 添加评论 免费帖 --> 分享 微博 QZONE ...

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

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

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

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

138. Laya.loader.create 加载的中途断网 简直是灾难 [ 86%]

LayaAir引擎 Laya.loader.create 加载的中途断网 简直是灾难 Laya.loader.create 加载ls的过程中 断网 简直是灾难 无论如何处理 都无法正确的接着完成。 Laya.loader.clearRes(error, true); 然后在 Laya.loader.clearUnLoaded(); 各种崩溃 在断网的不同阶段...

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

139. Laya.loader 跨域问题? [ 85%]

Laya.loader 跨域问题? 想通过Laya.loader.load加载一个第三方的头像图片,但是提示跨域不能加载,错误如下,请问如何处理?     Access to Image at 'http://tva2.sinaimg.cn/crop.0.0.180.180.50/***.jpg' from origin 'http://***.sina.com.cn' has been blocked by CO...

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

140. clearRes好像没作用,或许我的用法不对 [ 85%]

...         console.log("释放资源false")             Laya.loader.clearRes("res/atlas/comp.json", false);             Laya.loader.clearRes("res/atlas/comp.png", false);         }         if (e.keyCode == 66) {//B             console.log("释放资源 tru...

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