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

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

231. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 42%]

...方库,报错找不到文件  Laya2.0 在Main.ts里:import protoAll = require("../libs/protoAll"); var pCls = protoAll.com.bee.protobuf.ClimbingTowerInfoProto; var p: protoAll.com.bee.protobuf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = true;   用了第三方库prot...

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

232. laya2.8.0IDE工具中打安卓包(LayaNative版本相同),无法加载游戏启动页 [ 41%]

...com.layabox.run.*//LayaCache//appCache/da25d557/filetable.txt I/LayaBox:  require(/sdcard/layabox/scripts/config.js) I/LayaBox: found the file in the package:scripts/config.js I/LayaBox: JSRuntime::callMethod {} demo.J*ridge bgColor     JSRuntime::callMethod {} demo.J*ridge setFontColor I/LayaBox...

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

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

...ya前缀"]; }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

234. LayaAirIDE 2.0 laya.wxmini.js 第3行报错! 创建3D项目(TypeScript),导出微信小游戏,选择了JS混淆,崩溃在 laya.wxmini.js 第3行,错误如下 [ 40%]

...----------------------------------- define("libs/laya.wxmini.js", function(require, module, exports, process){ "use strict"; window = window || global, window.layalib || (window.layalib = function (i, e) {   (window._layalibs || (window._layalibs = )).push({ f: i, i: e }); }), window.layalib(functi...

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

235. 微信小游戏提审后,提示说代码侵权 [ 39%]

...意义的代码 */ const LINENUM = 20; const LINENUM_RADOM = 13; var fs = require('fs'); var path = require('path'); var filterFils = ["Base64", "ThemeAdapter","AssetAdapter", "Platform", "wxgamesdk"];//忽略文件 var filterDirs = ["xxxx"];//忽略目录 var traceName = "xxxx";//添加的干扰代...

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

236. 借助AMD来解决HTML5游戏开发中的痛点 [ 39%]

...用LayaIDE来创建项目,因为要使用LayaAir引擎的库文件。 ## requirejs 从requirejs官方下载库文件,目前的最新版本是2.3.4,这是下载链接[http://requirejs.org/docs/rele ... re.js][lib]。把下载的库文件放入`./bin`目录,并且在index.html增加文件引...

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

237. IDE1.7.19.1beta打包apk后后,播放spine动画出现图片缺失 [ 36%]

..."></script> </script> <script type="text/javascript"> require('boot'); </script> <script src="js/Main.js"></script>......   附件 : --> codeAndResource.rar errorSpineScreenShot.png 2018-11-20 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有...

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

238. Laya2.0编译后所有js都自动合并到bundle.js中,导致bundle.js过大,加载速度很慢,bundle.js可以拆分吗 [ 35%]

...      /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */     /* Experimental Options */     // "experimentalDecorators": true,        /* Enables experimental support for ES7 decorators. */     // "emitDecoratorMe...

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

239. VSCode高效开发工作流配置指南(TypeScript-IDE篇(TS)-代码模式基础) [ 33%]

...s脚本文件,脚本内容参照如下: ```json const {watch ,task } = require("gulp"); const {exec} = require("child_process"); function compile(cb) { //执行编译命令 layaair2-cmd compile let process = exec("layaair2-cmd compile"); process.stdout.on("data",(data)=>{ console.log(data); }); ...

来源: Laya2.0_文档 发布时间: 20210715

240. 关于LayaBox启动的问题。 [ 33%]

...lzz.platform/cache/LayaCache/localstorage/logo/logo.png I/LayaBox (12689): require(/sdcard/layabox/scripts/config.js) I/LayaBox (12689): found the file in the package:scripts/config.js I/LayaBox (12689): Download [ ]:http://192.168.137.1/public/sh ... 2.471 E/LayaBox (12689): download image file err...

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