大约有 197 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
...载音频的代码(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
... ]; this.isFirst = true; console.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqcloud.com/beta/book/bookLaya/img/progressBar$bar.png' from origin 'http://b...
来源: Laya_社区 发布时间: 20180208
...les/graceful-fs/fs.js:1:37) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:...
来源: Laya_社区 发布时间: 20210420
...n(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GamePage = new GamePage(); Laya.stage...
来源: Laya_社区 发布时间: 20181029
... Laya致命问题 -预加载,进度问题 使用情况描述: 使用Laya.loader.load加载2d和声音资源使用 Laya.loader.create加载3D场景和模型资源 问题描述: 预加载效果不明显(每次进入时,加载进度都非常慢,需要花半分钟加载,20mb的资源)加载模型...
来源: Laya_社区 发布时间: 20180507
...行报错: TypeError: Cannot read property 'load' of null 为何使用Laya.loader.load都会报错 附件 : --> fishHunter.zip 2019-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 引...
来源: Laya_社区 发布时间: 20190521
...资源加载姿势呢?? 目前我的资源加载方式是: Laya.loader.load 这个方法里面加载资源,包括图片、音效等资源。 当我使用Laya.SoundManager.playMusic播放音乐或者playSound时播放音效资源时,我传入的是资源路径,会提示 Resources al...
来源: Laya_社区 发布时间: 20180917
... //加载引擎需要的资源 //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); Laya.loader.load ( [ { url: "res/a...
来源: Laya_社区 发布时间: 20180513
...在代码中加载分包,是可以加载到分包内的资源的: Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { // ...... }); Laya.loader.load("sub2/Sphere.lh").then((res: Laya.PrefabImpl) => { // ...... }); 4.2 特殊情况下多级目录的分包 有时开发者的分...
来源: Laya3.0_文档 发布时间: 20251010
... stream.close(); 保存为byarr.byte文件后用layaAir加载解析: var loader:Loader = new Loader(); loader.on(Event.COMPLETE, this, loadEnd); loader.load("atlas/byarr.byte",Loader.BUFFER); private function loadEnd(data:*):void { if (data is ArrayBuffer) { var byts:Byte = new Byte(data); byts.po...
来源: Laya_社区 发布时间: 20170308