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

大约有 2 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0021 秒)

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

...。 commonjs:表示生成符合 CommonJS 规范的代码,适合使用 require 导入的项目。 -o ./src/libs/protobuf/protobuf.js -o:指定输出文件路径。 ./src/libs/protobuf/protobuf.js:这是编译后生成的 JavaScript 文件路径。 在运行 pbjs 命令后,所有的 .proto ...

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

2. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 80%]

...ort xx from "xx"的方式,所有IDE内置cjs模块都可以通过IEditor.require或者IEditorEnv.require去引用。 //可以通过import导入node内置模块 import fs from "fs"; import path from "path"; //也可以通过require const fs = IEditor.require("fs"); const sharp = IEditor.require("sh...

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