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

大约有 720 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

261. 官方能不能优化一下TS的编译速度 [ 69%]

...后面我会出攻略。加QQ61496426详细聊。 { "compilerOptions": { "module": "commonjs", "target": "es5", "sourceMap": true, "skipLibCheck": true }, "exclude": [ "node_modules" ] }   2017-08-09 0 0 分享 微博 QZONE 微信 15068753667 赞同来自: 20kb代码量编译1秒,200kb的代码...

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

262. 将3D项目原本为2.1.1的引擎升级到2.4.0之后直接编译运行出现的报错问题如下图 [ 69%]

...在引擎2.1.1下运行正常的) {   "compilerOptions": {     "module": "commonjs",     "target": "es5",     "noEmitHelpers": false,     "sourceMap": false,     "lib": ["es5", "dom", "es2015.promise"]   },   "exclude": ["node_modules"] } 2020-02-24 0 0 分享 ...

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

263. 引擎版本2.4.0打包微信小游戏报错,开发者工具正常,真机运行报错 [ 69%]

...常,真机运行报错 tsconfig.json配置是:{ "compilerOptions": { "module": "esnext", "target": "es6", "lib": [ "dom", "es5", "es2015.promise" ], "noEmitHelpers": true, "sourceMap": false }, "exclude": [ "node_modules" ] }  真机报错截图   开发者工具设置不勾选ES6转ES5和增...

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

264. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 69%]

...却可以在舞台上显示多个动画。 代码示例: ```typescript module laya{ export class SkeletonTempletSample { templet: Laya.Templet; constructor() { Laya.WebGL.enable(); Laya.init(1000, 900); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, th...

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

265. 新建Laya2D空项目(TS),编译出错! [ 69%]

...e.js [15:32:44] Starting 'compile'... 出错了: TypeScript error: ../node_modules/@types/node/index.d.ts(37,22): Error TS6053: File '../node_modules/@types/node/inspector.d.ts' not found.   ----我是分割线--------------------------------------------------------- 然后我做了如下操作: ...

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

266. the server responded with a status of 404 (Not Found) [ 68%]

...found unity3d sentinel key not found 构建报错,TypeScript error: node_modules/@types/node/base.d.ts' not found. ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found Swift中接入其他都正常,但是在你们的conchConfig中,报错'string'...

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

267. 关于js压缩 [ 68%]

...具可以和Ant配合使用,这样用Ant一健 发布,不然十几个module要一个一个手动压缩,每次发版本太累了。   另外, 今天用了一下Native打包, 发现在低端机上,Laya的那个logo播放的时候好卡啊,-_-,不知道是初始化引擎的原因导致...

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

268. 微信小游戏使用位图字体报错 [ 68%]

...位图字体 引入了domparserinone.js, WAGame.js:1 gameThirdScriptError module "libs/entities" is not defined Error: module "libs/entities" is not defined at require (http://127.0.0.1:13507/game/__ ... :78730) at http://127.0.0.1:13507/game/__ ... 78480 at http://127.0.0.1:13507/game/li ... 52:18 ...

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

269. 分包、多模块时的编译器BUG [ 68%]

分包、多模块时的编译器BUG 子模块文件a.TempModule.as 在根目录下配置module.def文件如下内容: module:"aa" path:"src/a"  其结果是生成bin/h5/js/aa.js文件。 然后编译器问题来了: 如果上一次编译成功,aa.js文件内容正确,在你不修改任何...

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

270. Cannot enlarge memory arrays. [ 68%]

...ws increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 laya.physics3D.js:308 Cannot enlarge memory arrays. Either (...

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