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

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

361. Image.loadImage 方法加载问题 [ 48%]

... console.log( this._publicSpaceData.icon );    this.bg.loadImage( "res/atlas/gamewindow/" + this._publicSpaceData.icon,0,0,0,0, new Laya.Handler(this, this.imgLoaded) );    this.addChild( this.bg );    this.addChild( this.btnEnter );   }   private imgLoaded ( e:Laya.Event ) : void   ...

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

362. laya.net.Loader_API3.0 [ 47%]

...ructors constructor Properties maxLoader retryDelay retryNum ANIMATIONCLIP ATLAS BUFFER FONT HIERARCHY IMAGE JSON MATERIAL MESH SOUND SPINE TERRAINHEIGHTDATA TERRAINRES TEXT TEXTURE2D TEXTURECUBE TTF VIDEO XML downloader extMap groupMap loadedMap preLoadedMap typeMap Accessors loading Methods cacheR...

来源: Laya3.0_api 发布时间: 20231115

363. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 46%]

...unction () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBirdSing.index = 0; // 当前播放索引 this.aniBirdSing.zOrder = 1; this.aniBirdSing.play(); this.aniBird...

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

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

...下: ```JavaScript var xhr = new XMLHttpRequest(); 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 = ...

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

365. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 46%]

...r.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); }   2、你打包图集的时候,.json文件的prefix键是没有值的,这个是因为你直接针对散图所在文件夹进...

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

366. Laya.Animation.createFrames,用图集url加载的播放顺序不对,用图集Array加载的播放顺序对,咋回事? [ 46%]

...png"], "fish_live_16"); //播放不正常 Laya.Animation.createFrames("res/atlas/fish/fish_16.json", "fish_live_16"); 2017-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: ...

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

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

...下: ```javascript var xhr = new XMLHttpRequest(); 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 = ...

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

368. Laya.HTMLDivElement解析img标签报错 [ 45%]

...new Laya.HTMLDivElement();         div.innerHTML="<img src='res/atlas/test.png'/>"         Laya.stage.addChild(div);     } TypeError: Illegal constructor laya.core.js:11687     at Function.getInstance (file:///D:/work/test2/bin/libs/laya.core.js:11687:24)     at Functio...

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

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

...下: ```javascript var xhr = new XMLHttpRequest(); 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 = ...

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

370. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...毕,此方法只执行一次 */ onAwake(): void { this.sprite.loadImage("atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y =...

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