大约有 4 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0026 秒)
...teByte(10); byts.writeInt(20); byts.writeInt(200); byts.writeInt(150); var file:File = File.desktopDirectory.resolvePath("byarr.byte"); var stream:FileStream = new FileStream(); stream.open(file, FileMode.WRITE); stream.writeBytes(byts); stream.close(); 保存为byarr.byte文件后用layaAir加载...
来源: Laya_社区 发布时间: 20170308
...、图片、字体、声音等) [size=14][code]// Use ZIP when loading files // Note By convention, only resource files in the level-1 directory are loaded Laya.loader.create([{ url: "xx.zip", type:"ZIP"}]) [/size][/code] 如果只需要加载zip包中的部分资源,或者资源路径在多级...
来源: Laya_社区 发布时间: 20211227
... 下载zip包的耗时UnZip Dir: 解压zip包目录结构的耗时Parse Files: 解压zip包的文件总个数和耗时Load Zip Total:从压缩包下载前到资源加载完毕后的总耗时 如果需要关闭调试可以:[code]// Turn off time-consuming printing LayaZip.DeBug = false[/code]...
来源: Laya_社区 发布时间: 20230316
...载协议文件 /** * Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback. * @param {string|string[]} filename One or multiple files to load * @param {Root} root Root namespace, defaults to create a new one if omitted. * @param {LoadCallback} ...
来源: Laya3.0_文档 发布时间: 20250104