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

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

1. 开放数据域组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 100%]

...开放数据域的样式和布局 let style = { container: { width: 400, height: 200, backgroundColor: "#ffffff", justifyContent: "center", alignItems: "center", }, testText: { color: "#ffffff", width: "100%", height: "100%", lineHeight: 200, fontSize: 40, textAlign: "center", }, // 文字的最终...

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

2. 网络通信 · LayaAir3文档 · LAYABOX [ 82%]

...接收和发送网络消息。 var msg:any ={name:"xxx",age:18,weight:65.5,height:175}; var byte:Laya.Byte = new Laya.Byte(); //实例化byte数组 byte.endian = Laya.Byte.LITTLE_ENDIAN; //设置大小端 byte.writeUTFString(msg.name); //写入数据 byte.writeByte(msg.age); byte.writeFloat32(msg.we...

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

3. TiledMap地图 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...tangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledMap地图 this.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite()...

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

4. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

...ateNode("Sprite", { texture: { _$uuid: asset.id }, width: imageMeta.width, height: imageMeta.height }); } }); } } onDropToScene 资源被拖放到场景时被调用,如果没有定义这个方法,或者这个方法返回false,则会尝试调用onCreateNode创建节点,如果创建成功,...

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