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

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

1. 支付宝小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...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

2. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 96%]

...gnore wx.setUserCloudStorage({ KVDataList: KVDataList, success: () => { console.log("数据保存成功") }, fail: () => { console.log("数据保存失败") }, complete: () => { console.log("执行调用结束回调") } }); } } 然后是getFriendCloudStorage方法,来到开放数据域的...

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

3. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 91%]

...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 这里主要介绍一下printProgress打印的内容,在抖音开发者工具打开并编译我们导出的项目后,会打印如下日志: (图4-2) tt.loadSubp...

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

4. 微信小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 78%]

...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 下面重点介绍一下printProgress打印的内容,在微信开发者工具打开并编译我们导出的项目后,会打印如下日志: (图4-2) wx.loadSubp...

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

5. vivo小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 78%]

...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 这里介绍一下printProgress打印的内容,在小游戏调试器平台打我们导出的项目后,连接vivo官网提供的调试地址会打印如下日志: ...

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

6. 引用外部脚本的方式 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...Main extends Laya.Script { private aStarInstance: AStarFinder; onStart() { console.log("Game start"); // 0表示通路,1表示障碍 let myMatrix = [ [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 1, 1, 0, 1, 1, 0], [0, 0, 1, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 1, 0], [1, 1, 1, 0, 1, 0,...

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

7. 预制体模块 · LayaAir3文档 · LAYABOX [ 71%]

...operty( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>{ //创建预制体 let monkey: Laya.Sprite3D = res.create(); //添加预制体到场景中 this.scene.addChild( monke...

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

8. 项目设置面板 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...阅文档《性能统计与优化》。 1.3.2 显示移动端调试工具 VConsole 在移动端调试,通常需要联到电脑端的浏览器上。 如果开发者不需要断点,只是一些常用的日志打印、加载等查看等,开启V Console,在移动端会出现如图1-11所示的...

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

9. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...operty( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>{ //创建预制体 let monkey: Laya.Sprite3D = res.create(); //添加预制体到场景中 this.scene.addChild( monke...

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

10. 浏览器接口 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...注册 Laya.Browser.window.addEventListener("click", (event: any) => { console.log(event.type); }) Window.open() 方法、window.postMessage()方法、Window.addEventListener()方法 3.3 container 画布 LayaAir引擎里可以通过 Laya.Browser.container 获取画布容器。 比如,我们可...

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