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

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

21. web版发布后,在浏览器运行报错 提示找不到 btCollisionObject_create [ 68%]

...20)     at Mi._createNodeByJson02 (laya.d3.min.js:1:818349)     at Mi._parse (laya.d3.min.js:1:818633)     at _onHierarchyInnerFirstLevResouLoaded (laya.d3.min.js:1:862623)     at T.runWith (laya.core.min.js:1:15460)     at laya.core.min.js:1:345845 _onAdded @ laya.d3.min.js:1 _addComponen...

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

22. 微信开发者工具问题 [ 68%]

...nction SyntaxError: Unexpected token in JSON at position 134     at JSON.parse (<anonymous>)     at Function.MiniAdpter.getJson (http://127.0.0.1:15089/game/code.js:10708:15)     at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:15089/game/code.js:14608:25)     at Handler._...

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

23. [0]laya-zip让你的游戏加载速度提升350%!! [ 68%]

... ZIP: 下载zip包的耗时UnZip Dir: 解压zip包目录结构的耗时Parse Files: 解压zip包的文件总个数和耗时Load Zip Total:从压缩包下载前到资源加载完毕后的总耗时 如果需要关闭调试可以:[size=14][code]// Turn off time-consuming printing LayaZip.DeBu...

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

24. 二次开发(TypeScript-LayaNative原生服务-LayaNative进阶) [ 68%]

....value = "Hello OC!"; bridge.callWithBack(function(value) { var obj = JSON.parse(value) alert(obj.value); },"testAsyncCallback:", JSON.stringify(obj)); } else if (os == "Conch-android") { alert(bridge.call("testString","hello")); alert(bridge.call("testNumber",256.0)); alert(bridge.call("testBool",f...

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

25. 二次开发 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...e = "Hello OC!"; bridge.callWithBack(function(value: any) { var obj = JSON.parse(value) alert(obj.value); },"testAsyncCallback:", JSON.stringify(obj)); } else if (os == "Conch-android") { alert(bridge.call("testString","hello")); alert(bridge.call("testNumber",256.0)); alert(bridge.call("testBool",f...

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

26. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 65%]

...tion(){ return through.obj(function (file, enc, cb) { staticVersion = JSON.parse(file.contents.toString()) let content = `export default ${file.contents.toString()}` file.contents = new Buffer(content) this.push(file) return cb() }); }()) .pipe(gulp.dest('.')) }) /** 图集资源添加时间戳 */ g...

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

27. 2.3.0beta 各种bug [ 65%]

...               if(obj){                     return  JSON.parse(obj);                  }             }             return null;             // return JSON.parse(Storage.support ? Storage.items.getItem(key) : null);         }     2019-10-17 添加评...

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

28. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 65%]

...画模板 templet=new Laya.Templet(); templet.on(Laya.Event.COMPLETE,this,parseComplete); templet.on(Laya.Event.ERROR,this,onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() { //创建第一个...

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

29. [LayaAirIDE3]Laya3.2.1命令行打包,编译错误也生成成功 [ 64%]

...理旧数据 开始构建 正在准备资源 ExportAssetTool: 1 assets to parse ExportAssetTool: 1 assets to parse 正在导出资源 ExportAssetTool: 2 items to write 正在编译和打包脚本 正在拷贝文件 正在创建清单文件 Run .onCreateManifest 正在创建包 正在结束构建 Bui...

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

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

...{ fork } = require('child_process'); const path = require('path'); program.parse(process.argv); const projPath = path.join(__dirname, '../'); const layaCompileDir = path.join(projPath, '.laya'); const gulpFilePath = path.join(layaCompileDir, 'compile.js'); const gulpPath = path.join(projPath, 'node_...

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