大约有 56 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
...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, 1, 0], [0, 0...
来源: Laya3.0_文档 发布时间: 20251010
...点一滴 赞同来自: 关于加载超时的问题,请重点理解文件game.json文件的相关参数,提供一份雪球的配置参数: { "deviceOrientation": "landscape", "showStatusBar": "false", "networkTimeout": { "request": 10000, "connectSocket": 10000, "uploadFile": 10000, "downloadF...
来源: Laya_社区 发布时间: 20180426
... export class ProtobufDemo extends Laya.Script { onEnable() { console.log("Game start"); } } 2.2 Protobuf示例脚本 引入了protobuf模块就可以直接在项目中使用了,这里我们写了一个简单的示例DEMO,完整代码如下: // src/ProtobufDemo.ts // 引入生成的 protobuf ...
来源: Laya3.0_文档 发布时间: 20251010
...的示例,当蓝图节点触发onEnable生命周期时,开始打印”game start“,然后等待2秒 (这里的add就是参数节点,将1+1的结果输入给waitTime),再顺序执行打印“3”,2秒过后打印“4”。 (图2-7) 2.2 蓝图编辑 2.2.1 新建蓝图事件图表 ...
来源: Laya3.0_文档 发布时间: 20251010
...egClass() export class Main extends Laya.Script { onStart() { console.log("Game start"); } } 2.2 场景的脚本说明 前面讲了项目的入口, 本小节简述一下场景的脚本。场景的脚本主要是两类, 一类是自定义的组件脚本。这种脚本,无论是2D还是3D都是...
来源: Laya3.0_文档 发布时间: 20251216
...wScript extends Main { private ui: RuntimeScript; onStart() { console.log("Game start"); this.ui = this.owner.scene as RuntimeScript; super.baseUI(this.ui); } } import { Main } from "./Main"; import { ButtonRuntime } from "./ButtonRuntime"; const { regClass, property } = Laya; @regClass() export cla...
来源: Laya3.0_文档 发布时间: 20251010
...Count)7.7 UBO Buffer Upload Memory(CT_UBOBufferUploadMemory)8. Other Game Count/Time(其他对象数量/耗时)8.1 Sprite2D Count(C_Sprite2DCount)8.2 Sprite3D Count(C_Sprite3DCount)8.3 BaseRender Count(C_BaseRenderCount)8.4 MeshRender Count(C_MeshRenderCount)8.5 SkinnedMesh...
来源: Laya3.0_文档 发布时间: 20260128
...。 例如,设置的映射地址是dcc.pathMapToDCC='http://layabox.com/game', 当请求http://layabox.com/game/res/skin1.png的时候,就会走DCC流程,在DCC内部会先转成相对地址res/skin1.png,然后查找到这个相对地址对应的对象id,下载指定id的对象。 如果...
来源: Laya3.0_文档 发布时间: 20251010
...名,第三位是项目名。都要写英文,例如:com.layabox.demoGame。 游戏版本 游戏版本与版本名称用处不同,这里是渠道平台用于区别版本更新。每次提审都要至少递归+1,自己测试无所谓。但是提审这里的值必须要比上次提审的值至...
来源: Laya3.0_文档 发布时间: 20251010
...e : 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( monkey ); monkey.t...
来源: Laya3.0_文档 发布时间: 20241014