大约有 48 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0087 秒)
Laya_社区(28) Laya3.0_文档(7) Laya2.0_文档(4) laya_api(3) Laya3.0_api(2) Laya2.0_api(2) Laya2.0_示例(1) Laya_示例(1)
...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
...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
...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
...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
...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
...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
...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
...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
...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
...sponse varies 响应实体的类型由 responseType 来指定, 可以是 ArrayBuffer ,Blob, Document, JavaScript 对象 (即 “json”), 或者是字符串。如果请求未完成或失败,则该值为 null responseText DOMString 此次请求的响应为文本,或是当请求未成功...
来源: Laya3.0_文档 发布时间: 20250104