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

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

1. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...text: Laya.Label = new Laya.Label(); onAwake(): void { this.initUI(); this.connect(); } /** * 初始化UI */ private initUI(): void { this.showLogger(); this.text.text = "请查看源码和调试信息,了解如何使用"; this.text.color = "#FFFFFF"; this.text.font = "Impact"; this.text.fontSize ...

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

2. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 87%]

... the buffer in the AudioBufferSourceNode source.buffer = myArrayBuffer; // connect the AudioBufferSourceNode to the // destination so we can hear the sound source.connect(audioCtx.destination); // start the source playing source.start(); } 运行上面的js代码,单击页面就会听到声音播...

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

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

...收文本和二进制数据。我们先来了解下 Socket 的用法 3.1.1 Connect 服务器 Socket 连接服务器有三种方式: 方式 说明 构造函数传参 立即连接 比如 new Socket(“192.168.1.2”,8899);注意这里的host参数没有ws前缀。 connect方法 传递url和端口...

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