大约有 157 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
...里把解码的数据控制台打印,看看结果 console.log(message); // ... do something with message // If your application uses length-delimited buffers, there is also encodeDelimited and decodeDelimited. } } ...
来源: Laya_社区 发布时间: 20170216
...der = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________") var ProtoBuf = Browser.window.protobuf; // Laya.init(550, 400); ProtoBuf.load("res/protobuf/Login.proto", onAssetsLoaded); function onAssetsLoaded(err, root) { cons...
来源: Laya_社区 发布时间: 20180704
...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 这里介绍一下printProgress打印的内容,在小游戏调试器平台打我们导出的项目后,连接vivo官网提供的调试地址会打印如下日志: ...
来源: Laya3.0_文档 发布时间: 20251010
...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 下面重点介绍一下printProgress打印的内容,在微信开发者工具打开并编译我们导出的项目后,会打印如下日志: (图4-2) wx.loadSubp...
来源: Laya3.0_文档 发布时间: 20251010
...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 代码中printProgress会打印加载进度日志,效果如下所示: (图4-2) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间...
来源: Laya3.0_文档 发布时间: 20251010
...同来自: button.on(Laya.Event.CLICK, this, function(event:Laya.Event){ console.log("点击到了UI"); event.stopPropagation(); }); 完整代码 2018-05-30 0 17 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你这个问题描述的很明确,很好,这个按钮正常来讲,会挡住下...
来源: Laya_社区 发布时间: 20180529
...阅文档《性能统计与优化》。 1.3.2 显示移动端调试工具 VConsole 在移动端调试,通常需要联到电脑端的浏览器上。 如果开发者不需要断点,只是一些常用的日志打印、加载等查看等,开启V Console,在移动端会出现如图1-11所示的...
来源: Laya3.0_文档 发布时间: 20251014
...lass() export class MsgRT extends MsgRTBase { onOpened(param: any): void { console.log(param.text); } } 这样,点击Scene场景中的Button,就会打印日志“点击成功!”,效果如动图2-3所示: (动图2-3) 2.3 关闭场景 1,关闭指定的场景 /** * 根据地址,关...
来源: Laya3.0_文档 发布时间: 20251010
...,reject)=>{ downloadBigFile(url, localfile, (total, now, speed) => { console.log(`downloading:${Math.floor((now / total) * 100)}`) return false;0 }, (curlret, httpret) => { if (curlret != 0 || httpret < 200 || httpret >= 300) { resolve(null); } else { resolve(localfile); } }, 10, 1000...
来源: Laya3.0_文档 发布时间: 20251010
...此时可以魔改一下 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