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

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

11. 深入理解LayaAir引擎架构和实现原理(一)跨平台引擎源码编译 [ 90%]

...eturn __awaiter(this, void 0, void 0, function* () { let json = JSON.parse(fs.readFileSync("outConfig.json")); this.BaseURL = emiter_1.emiter.BaseURL = json.from; this.outfile = json.out; this.createAS = json.createAS; this.layajsURL = json.layajsURL; this.tsCongfig = json.tsConfig; this.filterArr =...

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

12. 打包出现问题 [ 88%]

...个, 现在又这样了, 这不是长久解决办法   提示的错误: fs.js:558 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: ENOENT: no such file or directory, open '/Developer/xcode/projects/game_dev/180106JumpAJump/code.git/JumpLaya/release/layaweb/0.9/j...

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

13. layaair2-cmd compile 有bug [ 85%]

...:17] Working directory changed to /usr/local/lib/node_modules/layaair2-cmd fs.js:27 const { Math, Object } = primordials;                          ^ ReferenceError: primordials is not defined     at fs.js:27:26     at req_ (/usr/local/lib/node_modules/layaair2-cmd/node_modules/nativ...

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

14. 2.3.0BETA TS官方自定义shader教程BUG [ 84%]

...介绍的方式: 我做的方式: 我这边在引入自定义的 vs 和fs 的时候,却报错,因为没有导出两个模块,但是这却又是完全按照官方来的,请问到底是哪里不对? 附上我的工程 附件 : --> ShaderStudy2.3_.0Beta_.rar 2019-11-26 添加评论 免费...

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

15. 每次重新发布都会覆盖掉game.json和project.config.json [ 84%]

...快速调试",不再拷贝     let isHadWXFiles =         fs.existsSync(path.join(workSpaceDir, "bin", "game.js")) &&         fs.existsSync(path.join(workSpaceDir, "bin", "game.json")) &&         fs.existsSync(path.join(workSpaceDir, "bin", "pr...

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

16. 2.3.0beta 各种bug [ 83%]

...换Laya前缀"]; }else{     prevTasks = ["替换Laya前缀"] }  const fs = require("fs");  function readFile(path) {     if (fs.existsSync(path)) {         return fs.readFileSync(path, "utf-8");     }     return null; } gulp.task('替换Laya前缀', function(){       ...

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

17. [0]layaair2-cmd 编译bug [ 82%]

...bug Working directory changed to /usr/local/lib/node_modules/layaair2-cmd fs.js:27 const { Math, Object } = primordials;                          ^ ReferenceError: primordials is not defined     at fs.js:27:26     at req_ (/usr/local/lib/node_modules/layaair2-cmd/node_modules/native...

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

18. 微信小游戏,子域问题。 [ 82%]

微信小游戏,子域问题。 __static(MiniFileMgr, ['fs',function(){return this.fs=wx.getFileSystemManager();},'wxdown',function(){return this.wxdown=wx.downloadFile;} ]);   报错说没有这个方法:wx.getFileSystemManager() 附件 : --> 2018-07-25 1 条评论 免费帖 --> 分享 微博...

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

19. LayaNative中加载自己缓存的资源 [ 82%]

... { var folder:String=window.conch.getCachePath()+"/download/"; if (!window.fs_exists(folder)) { window.fs_mkdir(folder); } var fileName:String = url.replace("http","").replace(/:/g,"").replace(new RegExp('/','g'),"_"); var cachepath:String = folder+fileName; //判断文件是否存在 if (window.fs_...

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

20. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 81%]

...换Laya前缀"]; }else{     prevTasks = ["替换Laya前缀"] }  const fs = require("fs");  function readFile(path) {     if (fs.existsSync(path)) {         return fs.readFileSync(path, "utf-8");     }     return null; } gulp.task('替换Laya前缀', function(){       ...

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