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

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

1. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 100%]

...d, { silent: true, shell: true, }); _gulp.stdout.on('data', (data) => { console.log(`${data}`); }); _gulp.stderr.on('data', (data) => { console.log(`${data}`); }); _gulp.on('close', (code) => { console.log(`exit:${code}`); });   b)、创建并编写脚本 tools-publish.js#!/usr/bin/env n...

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

2. socket通讯返回数据 [ 96%]

...# } private openHandler(event: any = null): void { //正确建立连接; console.log("建立连接");//***************************************************************************不写出 console.log(event); } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 console.l...

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

3. 如何使用vscode编译laya项目 [ 91%]

....ts', onwarn:(waring,warn)=>{ if(waring.code == "CIRCULAR_DEPENDENCY"){ console.log("warnning Circular dependency:"); console.log(waring); } }, treeshake: false, //建议忽略 plugins: [ typescript({ [b]cacheRoot:workSpaceDir + "/.rpt2_cache", [/b] tsconfig:workSpaceDir + "/tsconfig.json", check...

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

4. 深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 [ 87%]

....ts', onwarn:(waring,warn)=>{ if(waring.code == "CIRCULAR_DEPENDENCY"){ console.log("warnning Circular dependency:"); console.log(waring); } }, treeshake: false, //建议忽略 plugins: [ typescript({ tsconfig:workSpaceDir + "/tsconfig.json", check: true, //Set to false to avoid doing any diagnos...

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

5. 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? [ 86%]

...106 if (tCacheType === 'bitmap' && (w > 2048 || h > 2048)) { console.warn("cache bitmap size larger than 2048,cache ignored"); _cacheStyle.releaseContext(); _next._fun.call(_next, sprite, context, x, y); return; } 就是这个 w > 2048 导致 容器的 CacheAs 'bitmap' 废...

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

6. 安装layaair2-cmd一直失败 [ 84%]

...:\COCOS\cocos2d-x-3.17.2\templates;E:\COCOS\cocos2d-x-3.17.2\tools\cocos2d-console\bin;E:\COCOS\Python\Python27;E:\COCOS\apache-ant-1.10.7\bin;C:\Users\Administrator\AppData\Roaming\npm;C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Egret\Egret Wing 3\bin ...

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

7. dcc更新失效, 有代码, 100%复现, 三楼附临时解决办法 [ 63%]

...此时可以魔改一下 if (_inline) { yield updateDcc(); if (!isDccOk) { console.log("init dcc fail"); return; } } if( !(yield dj_hook.OnDccOk()) ) { if (window["onLayaInitError"]) { window["onLayaInitError"]("Update index error"); } return; } var data = yield asyncs.loadText(url); for (var n = 0;...

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