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

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

21. 用ide打包后的图片,Texture显示不出来? [ 86%]

...到图片   代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );     setTimeout( functio...

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

22. 微信上测试加载服务器资源 [ 86%]

...务器资源 URL.basePath = "http://212.xx.xx.xx/"; Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,loadComplete)); loadComplete(){显示自己的ui}; 项目设置选择不校验合法域名。(我没有配置域名,用IP可以吗?) 发现comp.atlas是加载下来了,图片不...

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

23. 请教下微信小游戏的内存和数据缓存? [ 86%]

... 2018-01-22 10:37 let resArray: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loa...

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

24. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 84%]

...载引擎需要的资源             //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded));              Laya.loader.load             (                 [                     { url: "res/atlas/comp.atlas" , ...

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

25. 多线程Worker · LayaAir3.0文档 · LAYABOX [ 84%]

... e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","../atlas/comp.json"); xmlreq.send() }, false); 这个例子是在worker中进行加载文件,加载完毕传给主进程,运行这个例子可以在浏览器控制台看到数据输出来。 var myWorker = new Worker("my_tas...

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

26. button图片丢失 [ 83%]

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

27. 请问laya里如何解析json,似乎和AS3的不太一样。 [ 82%]

...sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON的解析和AS3的是一样的   2016-10-27 2 0 分享 微...

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

28. 粒子中引用的图片能合图吗 [ 81%]

...Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: ...

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

29. 火狐浏览器上webgl异常 [ 81%]

...享 微博 QZONE 微信 阿龙 赞同来自: [error]Failed to load: res/atlas/comp.atlas myLayaPricticeAll.max.js:16597:5 lose skin comp/button.png  Error: WebGL warning: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow....

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

30. 微信小游戏下载png为什么不带MD5? [ 81%]

...,发现第一个场景loadingScene加载后会自动下载里面用到的atlascomp4e6089ba.atlas),但是下载的png却是comp.png而不是compd042ffba.png, 看laya.core.js发现: 这是我们哪里设置有问题吗? 附件 : --> 2019-02-28 添加评论 免费帖 --> 分享 微博 QZ...

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