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

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

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

22. 预加载图集文集在小游戏端导致内存过高 [ 83%]

...致内存过高 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.loader.load(resArray, Laya.Handler....

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

23. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 81%]

...ic static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ super()} createChildren():v...

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

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

...tage.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: any) {...

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

25. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 81%]

...tatic  uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]};         constructor(){ super()} ...

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

26. atlas目录下.json文件与.atlas的区别 [ 80%]

...tlas的区别 在编辑模式下按F12导出时,bin/res/atlas下会生成comp.png和comp.atlas文件,但看教学视频中,没有生成.atlas文件,而是生成了.json文件,这两个文件有什么区别,两个文件的内容除了格式外是一样的,生成文件的不同是与什...

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

27. APK上粒子透明度问题 [ 80%]

...8-01-03 10:19 @helloworldlv:粒子中用到的texturename是不是的放在comp同级目录中, 1.如果放在comp子目录的一个文件夹中,导出是png和json,播放的粒子图片是错的(感觉像是裁剪错误); 2.如果放在comp同级目录中是没有问题的 Laya_Aaron ...

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

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

...qi 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 分享 微博 QZ...

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

29. UI编辑器里是否只能导入.jpg .png文件 [ 79%]

...UI编辑的模式 3.此时可以看到在【资源】栏里看到,只有comp文件夹【且内有相应图片资源】 4.将自己的图片资源文件夹resource拖拽到IDE【资源】栏中,导入资源 5.此时发现IDE【资源】栏并没有显示resource这个文件夹,但是在工程...

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

30. Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 [ 79%]

...Bit(/*laya.Const.ACTIVE_INHIERARCHY*/0x02,true);         if (this._components){             for (var i=0,n=this._components.length;i < n;i++){                 var comp=this._components[i];                 comp._setActive(true);         ...

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