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

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

321. 2.4.0bate IDE layaair2-cmd 安装错误求解 [ 76%]

...以下错误 PS D:\layagame\sblaya2> layaair2-cmd internal/modules/cjs/loader.js:638     throw err;     ^ Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\layaair2-cmd.js'     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:...

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

322. 将字节数组转为图片 [ 76%]

...yte layaAir端加载了img.byte文件后如何还原为图片?flash端的loader有个loadBytes方法可以加载字节数组,但是layaAir端没有相关方法实现 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

323. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 76%]

...       //加载引擎需要的资源             //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded));              Laya.loader.load             (                 [                     { url: "res/a...

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

324. 鼠标交互-拖动 [ 76%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(ApePath, Handler.create(this, this.setup)); } setup() { this.createApe(); this.showDragRegion(); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(ApePath)...

来源: Laya2.0_示例 发布时间: 20251130

325. layaair2-cmd compile 有bug [ 76%]

...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

326. swf转laya,还需要加载原swf?Loader type是什么? [ 76%]

swf转laya,还需要加载原swf?Loader type是什么? 问题1: mapFlash转laya格式文件,加载时还需要加载mapFlash.swf? 问题2: {url:"../../res/swf/mapFlash.swf", type:Loader.BUFFER} swf的type是Loader.BUFFER吗? 2017-01-17 添加评论 免费帖 --> 分享 微博 QZONE ...

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

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

...载音频的代码(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

328. 开启WorkerLoader后透明图片会变暗 [ 75%]

开启WorkerLoader后透明图片会变暗 一些前提: 1.通过Laya.loader.load加载了一个lh文件2.lh文件包含了一个MeshSprite3D,使用了EffectMaterial材质3.材质内引用了一张透明度为80的图片4.加载前调用了Laya.WorkerLoader.enableWorkerLoader(); 效果:   不开...

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

329. Laya.loader 跨域问题? [ 75%]

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

330. Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? [ 75%]

Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? var soundData = null; Laya.loader.load("res/audio/TheSacredWar.ogg", Laya.Handler.create(Laya.stage, function () { console.log('音乐加载完成>>>-----------------|>'); soundData = Laya.loader.getRes("res/audio/some...

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