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

大约有 334 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0050 秒)

31. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 85%]

Laya.loader.load(xx) 当地址""的时候,会报错。 laya 引擎是2.5的      Laya.loader.load(cg_url,Laya.Handler.create(this,()=>{             let tur:Laya.Texture = Laya.loader.getRes(cg_url);             if(tur)img_cg.graphics.drawImage(tur)        ...

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

32. Uncaught TypeError: Cannot read property '_tf' of null [ 85%]

...nction main():void {   _guideImage = new Image();   _guideImage.source = Loader.getRes("source/png/ui/1/guideImg.png");     tweenGuide1(_guideImage );     Tween.clearAll(_guideImage);   _guideImage.destroy(true);   _guideImage.dispose();   _guideImage = null; }   public function tweenGui...

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

33. 怎么加载网络上的图片 [ 85%]

...ang 赞同来自: 1.设置baseUrl为:http://image.xxx.com/ 2. 使用Laya.loader.load("1.png",Laya.Handler.create(this,this.complete)); 3.//加载完成回调处理 complete():void{} 2018-05-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

34. 发布h5项目,在浏览器上初始加载资源过多导致卡顿怎么优化 [ 84%]

...3-30 10:47 你预加载资源怎么写的 yaorao • 2018-03-30 11:29 Laya.loader.load([ { url: "res/common@atlas0.png", type: Loader.IMAGE }, { url: "res/common.fui", type: Loader.BUFFER }, { url: "res/game@atlas0.png", type: Loader.IMAGE }, { url: "res/game.fui&q...

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

35. laya接入fairyGUI的时候资源加载方式? [ 84%]

laya接入fairyGUI的时候资源加载方式?     Laya.loader.load([{ url: "res/Basics_atlas0.png", type: laya.net.Loader.IMAGE },     { url: "res/Basics.fui", type: laya.net.Loader.BUFFER }, { url: "res/MainMenu_atlas0.png", type: laya.net.Loader.IMAGE },     { url: "res/MainMenu.fu...

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

36. button图片丢失 [ 84%]

...的链接 提交 3 个回复 cuixueying 赞同来自: 189*****192  Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"comp/btn_queding.png",type:Loader.IMAGE}], Handler.create(this, onAssetLoaded), null);comp.json是预加载的图集下的资源,你既然是不打包,表示...

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

37. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 84%]

...。layaair折腾半天,搞不明白image组件,sprite.loadImageLaya.loader.load如果用for循环操作,响应事件中用什么方法指向事件的发起对象?原来用e.target和e.data。现在事件发起者和加载的数据怎么得到呢?(不用循环可以用直接用变量...

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

38. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 84%]

...Mode="horizontal"; //加载FGUI中的文件 var ProgressBar,resArray; Laya.loader.load([ {url:"res/Public.fui",type:laya.net.Loader.BUFFER}, {url:"res/Public@atlas_ucn9w.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas_ucn90.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas0.png",type...

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

39. Laya.Image怎么获取图片的真实大小 [ 83%]

...相关的链接 提交 2 个回复 何小威 赞同来自: 无名氏 Laya.loader.load('../laya/assets/comp/bg.jpg',Laya.Handler.create(this,()=>{       this.bgImage = Laya.loader.getRes('../laya/assets/comp/bg.jpg');       console.log([this.bgImage.width,this.bgImage.height]); })); 2018-07-...

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

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

...图片加密数据是在图片的前面写入了四个字节的数据 Laya.loader.fetch("resources/res/test.bin","arraybuffer").then((res)=>{ //获得res的ArrayBuffer数据 let arraybuffer: ArrayBuffer = res; //Byte数组接收arraybuffer let byte:Byte = new Byte(arraybuffer); //从第四个字...

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