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

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

21. zip更新 · LayaAir3.3 · 引擎文档 · LAYABOX [ 91%]

...) * @param opttimeout 超时时间, * 注意如果成功了不会返回ArrayBuffer,不要使用这个参数。因为可能太大。 */ declare var downloadBigFile:(url:string, local:string, onprog:(total:number,now:number,speed:number)=>boolean,oncomp:(curlret:number, httpret:number)=>vo...

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

22. 性能测试-骨骼 [ 89%]

...unction onAssetsLoaded() { var tTexture = Loader.getRes(mTexturePath); var arraybuffer = Loader.getRes(mAniPath); mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.parseData(tTexture, arraybuffer, 10); } function parseComplete() { for (var i = 0; i = tAnimNum) { mA...

来源: Laya_示例 发布时间: 20260106

23. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 89%]

...equest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(i...

来源: Laya2.0_文档 发布时间: 20210714

24. 性能测试-骨骼 [ 89%]

...mplet, Event = Laya.Event; let tTexture = Loader.getRes(mTexturePath); let arraybuffer = Loader.getRes(mAniPath); mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.parseData(tTexture, arraybuffer, 10); } parseComplete() { const Event = Laya.Event; for (let i =...

来源: Laya2.0_示例 发布时间: 20260106

25. laya.utils.Byte [ 88%]

...的高级开发人员。 Public Properties PropertyDefined By  buffer : ArrayBuffer[read-only] 获取此对象的 ArrayBuffer 数据,数据只包含有效数据部分。 Byte  bytesAvailable : int[read-only] 可从字节流的当前位置到末尾读取的数据的字节数。 Byte  endian ...

来源: Laya2.0_api 发布时间: 20190513

26. laya用原生JS的protoBuf,已解决自己做记录 [ 88%]

...otoBuf,已解决自己做记录 因为原生的JS的protBuf需要用JS的ArrayBuffer往protoBuf 我之前取巧直接取laya的ByteArray的_data_来当ArrayBuffer用 会有问题,因为这个数据是被ByteArray封装过的,不能直接取。解决方法用ByteArray的getByte一个一个字...

来源: Laya_社区 发布时间: 20170227

27. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 88%]

...equest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(i...

来源: Laya2.0_文档 发布时间: 20210715

28. Native下htmlCanvas.context.getImageData获取的ImageData是空的。 [ 88%]

...机。 看到Native里有一个保存图片的方法。conch.saveAsJpeg( arrayBuff,width,height,conch.getCachePath()+"/test.jpg" ); 这个方法第一个参数需要传入arraryBuffer数据。   于是我使用drawToCanvas的方法获得HTMLCanvas。 并且使用HTMLCanvas.context.getImageData().da...

来源: Laya_社区 发布时间: 20180120

29. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 87%]

...equest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(i...

来源: Laya2.0_文档 发布时间: 20210714

30. 截屏函数异常E/LayaBox:className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen [ 87%]

...ron 赞同来自: if( window.conch ) { window.conch.captureScreen(function(arrayBuff,width,height){ /* //存储文件的方式 conch.saveAsPng( arrayBuff,width,height,conch.getCachePath()+"/test.png" ); window.globalImage = window.document.createElement("img"); window.globalImage.onload=function() {...

来源: Laya_社区 发布时间: 20180227