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

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

1. 性能测试-骨骼 [ 100%]

...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_示例 发布时间: 20251209

2. 性能测试-骨骼 [ 99%]

...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_示例 发布时间: 20251209

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

...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

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

...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

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

...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

6. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 91%]

...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...

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

7. laya.d3.resource.DataTexture2D [ 90%]

...aTexture2D() 创建一个 Texture2D 实例。 DataTexture2D  create(data:ArrayBuffer, w:int, h:int, magfilter:int, minfilter:int, mipmap:Boolean = true):DataTexture2D[static] DataTexture2D  getPixels():Uint8Array 返回图片像素。 DataTexture2D  load(url:String, w:int = 0, h:int = 0, magfi...

来源: laya_api 发布时间: 20170929

8. LayaNative端使用.ttf字体 [ 88%]

...LayaNative端使用.ttf字体的方法setFontFaceFromBuffer(fontFamily,arrayBuffer),fontFamily为字体名称  arrayBuffer为ttf文件的内容 arrayBuffer(下载.ttf文件后的二进制数据)package { import laya.display.Text; import laya.net.Loader; import laya.utils.Browser; import...

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

9. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 88%]

...ader.JSON json JSON类型 Laya.Loader.XML xml XML类型 Laya.Loader.BUFFER arraybuffer 二进制类型 Laya.Loader.IMAGE image 纹理类型 Laya.Loader.SOUND sound 声音类型 Laya.Loader.VIDEO video 视频类型 Laya.Loader.ATLAS atlas 图集类型,加载完成后返回图集json信息(并创建...

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

10. 网络通信 · LayaAir3文档 · LAYABOX [ 87%]

...sponse varies 响应实体的类型由 responseType 来指定, 可以是 ArrayBuffer ,Blob, Document, JavaScript 对象 (即 “json”), 或者是字符串。如果请求未完成或失败,则该值为 null responseText DOMString 此次请求的响应为文本,或是当请求未成功...

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