大约有 56 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0043 秒)
...10; i++) Laya.timer.callLater(this, this.hideImage); } hideImage(): void { console.log("hideImage"); this.Image.visible = false; } } 5. 清理定时器 Laya.timer.clear:清理指定的定时器。定义如下: /** * 清理定时器。 * @param caller 执行域(this)。 * @param method 定时器...
来源: Laya3.0_文档 发布时间: 20251010
...is, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我们看到 图片加载了 而且也有我们打印出来的加...
来源: Laya_社区 发布时间: 20160722
...环境找不到window---cant find variable: window stack laya如何重写console.log 打印错误跟信息到自己写的日志面板上 问题状态 最新活动: 2018-06-28 15:15 浏览: 1823 关注: 4 人
来源: Laya_社区 发布时间: 20180511
...emo 代码非常少 可以重现我说的问题 function initLaya() { console.log('Laya.version:' + Laya.version); //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(750, 1334, true); //适配模式 Laya.stage.scaleMode = 'fixedwidth'; Laya.stage.screenMode = Laya....
来源: Laya_社区 发布时间: 20180426
...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 这里主要介绍一下printProgress打印的内容,在抖音开发者工具打开并编译我们导出的项目后,会打印如下日志: (图4-2) tt.loadSubp...
来源: Laya3.0_文档 发布时间: 20251010
...LICK 的(以下代码来自“2D入门示例”): onEnable(): void { console.log("IndexRT onEnable") //侦听ui按钮点击事件 this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开UI场景示例 console.log("uiBtn"); Laya.Scene.open("scenes/UiMain.ls"); }); //侦听物理按...
来源: Laya3.0_文档 发布时间: 20251010
...ent.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sprite2.mouseEnabled);//打印子节点sprite2的MouseEnabled的值:true } test2(e: Laya.Event) { console.log('mou...
来源: Laya3.0_文档 发布时间: 20251010
...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 这里介绍一下printProgress打印的内容,在小游戏调试器平台打我们导出的项目后,连接vivo官网提供的调试地址会打印如下日志: ...
来源: Laya3.0_文档 发布时间: 20251010
...阅文档《性能统计与优化》。 1.3.2 显示移动端调试工具 VConsole 在移动端调试,通常需要联到电脑端的浏览器上。 如果开发者不需要断点,只是一些常用的日志打印、加载等查看等,开启V Console,在移动端会出现如图1-11所示的...
来源: Laya3.0_文档 发布时间: 20251014
...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