大约有 487 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
...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
... 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
...,发现第一个场景loadingScene加载后会自动下载里面用到的atlas(comp4e6089ba.atlas),但是下载的png却是comp.png而不是compd042ffba.png, 看laya.core.js发现: 这是我们哪里设置有问题吗? 附件 : --> 2019-02-28 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20190228
macOS sierra 1.7.9 正式版 无法发布资源 无法发布资源到res/atlas目录 出现如下错误: /Applications/LayaAirIDEMac_1.7.9.app/Contents/Resources/app/out/vs/layaEditor/libs/TP/atlas-generator: Permission denied at ChildProcess.exithandler (child_process.js:223) at emitTwo (events....
来源: Laya_社区 发布时间: 20170829
...e = "showall"; Laya.stage.screenMode = "horizontal"; Laya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.removeSelf(); Laya.Pool...
来源: Laya_社区 发布时间: 20170725