大约有 505 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)
Laya_社区(459) Laya2.0_文档(27) Laya3.0_文档(6) Laya_示例(3) Laya3.0_api(3) Laya2.0_示例(3) laya_api(2) Laya2.0_api(2)
...1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin="comp/vscroll.png"; pa...
来源: Laya_社区 发布时间: 20161103
...ader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); })(); function createAnimation() { var ani = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.pl...
来源: Laya_示例 发布时间: 20251209
...AssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console.log(Laya.loader.getRes("res/ui/share@atlas0.png"))//此处会...
来源: Laya_社区 发布时间: 20180609
...机里是不一样的,咋回事? 手机: 网页: 代码: ani.loadAtlas("res/atlas/hero_"+_model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加...
来源: Laya_社区 发布时间: 20180307
...小写规则有没有基本的说明文档 比如: Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(null, onLoaded), null, Laya.Loader.ATLAS); Laya.loader.load(resArray, Laya.Handler.create(null,onLoaded)); loader与handler 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170316
... lusky 赞同来自: Laya.init(1200, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { ca...
来源: Laya_社区 发布时间: 20170607
... 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 应该是atlas后缀的文件你没有在iis服务器上设置允许,建议你上网查下相关资料 2018-01-12 0 0 分享 微博 QZONE 微信 casd12222003d 赞同来自: 发现路径全错了,下面这个是选择合并JS后的...
来源: Laya_社区 发布时间: 20180112
..., (state, responseText) => { this.errors[path] = `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`; if (error) error(path, `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`); this.toLoad--; this.loaded++; }); 附件 : --> 2022-01-22 添加评论 免...
来源: Laya_社区 发布时间: 20220122
...原因导致的吗? 怎样解决? IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 资源管理器中的图片个别显示不打包,是不是不能打包到图集中了?这个是什么原因造成的呢?如何避免? lineCap不起作用...
来源: Laya_社区 发布时间: 20180423
...a.Scene { onAwake(): void { Laya.loader.load("/未命名.atlas", Laya.Loader.ATLAS).then(data=>{ let aaa = new Laya.Sprite(); this.addChild(aaa); aaa.x = 100; aaa.y = 100; aaa.texture = dat...
来源: Laya_社区 发布时间: 20250801