大约有 6 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)
...类型的多资源加载方式三、不解析不缓存的加载资源四、Option参数LayaAir引擎的资源加载方法详解 Author: Charley 资源加载是游戏引擎的核心模块,是必须要使用的功能,LayaAir引擎提供了Loader类用于加载文本、JSON、二进制、图像等...
来源: Laya3.0_文档 发布时间: 20251010
... type: Color, default: [1, 1, 1, 1] }, u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } }, u_NormalTexture: { type: Texture2D, options: { define: "NORMALTEXTURE" } }, u_NormalScale: { type: Float, default: 1.0, range: [0.0, 2.0] }, u_Metallic: { type: Float, default: 0.0, ran...
来源: Laya3.0_文档 发布时间: 20251010
...用数组)1.3 加载多个文件(组合)1.5 加载HTMLImage1.6 使用Options。1.7 预制体/场景的问题1.8 旧版本引擎load和create的兼容性问题1.9扩展Loader能力2、关于动态加载IDE里的资源说明3、LayaAir3.0 输入处理模块修改3.1 2D和3D统一接口,3.2 2D...
来源: Laya3.0_文档 发布时间: 20251010
...me : "count" , type: "number" }, { name : "actions", inspector: "Buttons", options : { buttons : [ { caption : "点我", event: "my_click" } ] } } ] } ]); this._panel.allowUndo = true; //根据需要设置 //如果不需要undo功能,也可以直接this._data = {}; this._data = IEditor.DataWatcher...
来源: Laya3.0_文档 发布时间: 20251010
...egClass() @classInfo({ properties: [ { name: "Group1", inspector: "Group", options: { members: ["b", "c"] }, position: "after a" } ] }) export class NewScript extends Laya.Script { @property(String) public a: string = ""; @property(String) public b: string = ""; @property(String) public c: string = ...
来源: Laya3.0_文档 发布时间: 20251010
...据中,解码获得Mesaage对象。 Message.toObject(message: Message , options: ConversionOptions): Object 转换Message对象数据到一组Javascirpt数据。 4.5 代码示例 onAwake(): void { var resPath: string = "assets/res/protobuf/awesome.proto"; // 加载protobuf文件 this.ProtoBuf.load...
来源: Laya3.0_文档 发布时间: 20250104