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

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

61. 为什么我导出的图集里面没有json文件,只有altas文件??? [ 62%]

...就可以加载文件了比如说加载图片的路径就是“res/atlas/comp.png”; 2017-11-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 huixiang 相关问题 2.0一不小心删了bin目录下的某个场景json文件。。竟然...

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

62. layaAir IDE UI导出显示异常 [ 62%]

...默认例子里面加载的是json格式的: Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS);   所有导致了图集位置错乱,麻烦技术修下这个bug. 建议ui编辑器默认就导出成json格式大图~~   2017-11-13 0 0 分享 微博 QZONE...

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

63. 精灵 · LayaAir3.0文档 · LAYABOX [ 61%]

...此方法只执行一次 */ 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 = Laya....

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

64. HTMLIframeElement加载html网页的问题 [ 61%]

...} // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }运行会报错:见图:   求解~! ...

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

65. 百度小游戏 内存不断增大的情况 [ 61%]

...igLoaded=function(){ Laya.init(600,400); Laya.loader.load([{url:"res/atlas/comp.json",type:"atlas"}],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this.isOpen=true; var testView=n...

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

66. 按钮组件 · LayaAir3.0文档 · LAYABOX [ 60%]

...wake(): void { this.btn.scale(5, 5); //放大五倍 this.btn.skin = "atlas/comp/button.png"; //皮肤 this.btn.stateNum = 3; //皮肤状态 this.btn.label = "确定"; //文本标签 this.btn.labelFont = "宋体"; //文本标签字体 this.btn.labelSize = 20; //文本标签字体大小 this.btn.label...

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

67. UI界面加载有哪些回调方法可用 [ 60%]

...面加载有哪些回调方法可用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方...

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

68. 【vivo】2d图集加载不上 [ 60%]

...vivo】2d图集加载不上 Laya.loader.load(url,Handler.create(this,onLoadComplete),null,Loader.ATLAS); 用Loader.ATLAS图集类型加载失败 附件 : --> myLaya.zip 2019-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

69. 位图切片组件 · LayaAir3.0文档 · LAYABOX [ 59%]

...t;> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫秒 this.clip.clipX = 10; // 切片x轴数量 this.clip.autoPlay = true; // 动画自动播放 } } 二、通过代码创建Cl...

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

70. FB运行laya新建的ui官方示例,背景图片没有加载出来 [ 59%]

...后提示找不到bg.png,在浏览器中的appication中找不到h5/res/comp/bg.png,我手动把这个路径创建出来后,还是无法加载 附件 : --> myDeme2.zip 2018-09-20 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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