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

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

181. Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 [ 84%]

Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.fl...

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

182. 3d资源加载问题,Laya.loader.create加载资源销毁后第二次加载会报错,报错提示为SubMeshStaticBatch静态网格合并出错 [ 84%]

3d资源加载问题,Laya.loader.create加载资源销毁后第二次加载会报错,报错提示为SubMeshStaticBatch静态网格合并出错 使用Laya.loader.create加载3d资源后销毁资源,然后重新进入场景再次调用Laya.loader.create重新加载3d资源会报错,提示是SubMesh...

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

183. 动画-图集动画 [ 84%]

...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_示例 发布时间: 20260815

184. 加载多个protobuf文件报错 [ 83%]

...ar assets:Array = [];    assets.push( { url:"protobuf/user.proto", type:Loader.TEXT } );    assets.push( { url:"protobuf/bag.proto", type:Loader.TEXT } );        Laya.loader.load(assets, Handler.create(this, onAssetsLoaded));   首先确认下类型是为TEXT吗,如果这样写就是...

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

185. 预加载音频文件遇到的问题 [ 83%]

...载音频的代码(JS飞机大战示例), //加载声音资源 Laya.loader.load("res/sound/bloodstream_bg.mp3", Laya.Handler.create(this, onLoadedSound), null, Laya.Loader.SOUND); // })(); function onLoadedSound(){ Laya.SoundManager.playMusic("res/sound/bloodstream_bg.mp3", 0, Laya.Handler.cre...

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

186. 微信小游戏图片加载不出来 [ 83%]

...图片加载不出来 var resArray = [{ url: "ui/BG/Start.png", type: Laya.Loader.IMAGE }, { url: "ui/BG/load.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }, { url: "res/atlas/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler....

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

187. httpReqest读取数据问题 [ 83%]

...: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 通过loader加载js文件获取的内容只有两种格式:一种是文本文件,一种是二进制,如果你在加载文件时没有指定加载类型,那么返回的就是文本类型,这个是没问题的,如果你...

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

188. IOs使用手动删除本地资源再次进去加载问题 [ 83%]

...ginLoad(){ var res_array = [ {url : "res/atlas/loading.atlas", type : Laya.Loader.ATLAS}, {url : "res/atlas/person.atlas", type : Laya.Loader.ATLAS}, {url : "loading/progress.png", type : Laya.Loader.IMAGE}, {url : "loading/progress$bar.png", type : Laya.Loader.IMAGE}, ] Laya.loader.load(res_array, ...

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

189. 二进制文件打包后,读取不到zip包内的文件 [ 83%]

...要代码如下    let loaditem = [{ url: "test.zip", type: Laya.Loader.PLFB }]         Laya.loader.load(loaditem, Laya.Handler.create(this, function (res) {             let item = 'res/layabox.png'             let getres = Laya.loader.getRes(item...

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

190. 关于Laya.loader.load和getRes的问题 [ 83%]

关于Laya.loader.load和getRes的问题 我正在阅读这个示例:https://layaair.ldc.layabox.co ... Image  以下是原文的代码,也是我疑问的地方:// 方法2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Te...

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