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

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

151. loader.create加载某个文件,当这个文件不存在的时候,需要怎样监听事件呢? [ 52%]

...呢? 当加载的文件不存在时会有 Failed to load resource: net::ERR_FILE_NOT_FOUND   这样的LOG,但是代码上要怎样监听这个事件呢?好像没有异常抛出来。 2017-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

152. es6代码发布时如果勾选压缩混淆 JS, 则发布报错 [ 52%]

...发布弹框中勾选'压缩混淆 JS' 3. 发布失败, 报如下错误: [ERR]|CompressJS Fail: /Users/somebody/Documents/code/lab/myLaya/bin/js/Hello.js {"message":"Unexpected token: keyword (const)","filename":"0","line":1,"col":0,"pos":0} 补充说明: 尝试将 jsconfig.json 中的compilerOption...

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

153. 预制体模块 · LayaAir3文档 · LAYABOX [ 51%]

...Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //...

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

154. FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory [ 51%]

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 在项目发布时,LayaIDE内存占用上升至1G,然后报错:=mediumFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory   附件 : --> 2018-06-16 添加评论 悬赏 --> 分享...

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

155. Array buffer allocation failed [ 51%]

...题请先登录 发起人 boys 相关问题 Failed to load resource: net::ERR_FILE_NOT_FOUND 2.0.0编译报错Cannot find global type 'Array' 求助!华为快游戏发布后报错 Unexpected end of JSON input Failed to load: 调试工具正常,真机报错:Request failed Status:0 text( 加...

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

156. layacmd atlas报错 [ 51%]

...  root@6c4616fdebd4:/# layacmd atlas internal/child_process.js:319 throw errnoException(err, 'spawn'); ^ Error: spawn EACCES at exports._errnoException (util.js:1020:11) at ChildProcess.spawn (internal/child_process.js:319:11) at exports.spawn (child_process.js:369:9) at Object.<anonymous> (/...

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

157. 2.2.0版本用命令行发布包报出异常 Error: Cannot find module 'gulp' [ 51%]

LayaAir IDE 2.2.0版本用命令行发布包报出异常 Error: Cannot find module 'gulp' 2.2.0版本用命令行发布包报出异常 。环境等都有安装好,gulp其实是已经有安装好了。   stderr: internal/modules/cjs/loader.js:638     throw err;     ^ Error: Cannot find module...

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

158. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //...

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

159. 1.7.17beta,微信小游戏Unity导出资源加载问题 [ 51%]

...非真机)在加载png文件时都会出现Failed to load resource: net::ERR_NAME_NOT_RESOLVED 错误。 代码为: Laya.URL.basePath = "https://www.youyegame.cn/h5/LayaBat/"; var zombie = scene.addChild(Laya.Sprite3D.load("nvmushi.lh")); 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE...

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

160. 发布vivo的时候提示failed to get the local adapter version number [ 51%]

...提示failed to get the local adapter version number 安装@qgame/adapter err Error:spawn /bin/sh ENOENT at ex.怎么回事啊blob:https://ask.layabox.com/0a8a41 ... aa762 附件 : --> 2021-07-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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