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

大约有 487 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)

291. 仅在Android微信小游戏下图片错乱 [ 68%]

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

292. Animation如何获取图集单帧实际宽高 [ 68%]

...机里是不一样的,咋回事? 手机: 网页: 代码: 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

293. 更新到1.7.6beta之后,HBox有bug [ 67%]

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

294. h5发布后,访问不到图片? [ 67%]

... 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 应该是atlas后缀的文件你没有在iis服务器上设置允许,建议你上网查下相关资料 2018-01-12 0 0 分享 微博 QZONE 微信 casd12222003d 赞同来自: 发现路径全错了,下面这个是选择合并JS后的...

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

295. laya.spine.js问题以及spine.core.js问题 [ 67%]

..., (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

296. Laya.Script _start和_update以及_lateupdate不执行是什么原因呢? [ 67%]

...原因导致的吗? 怎样解决? IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 资源管理器中的图片个别显示不打包,是不是不能打包到图集中了?这个是什么原因造成的呢?如何避免? lineCap不起作用...

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

297. [LayaAir3]laya3.3图集使用平铺功能后绘制错误内容 [ 66%]

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

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

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

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

299. macOS sierra 1.7.9 正式版 无法发布资源 [ 66%]

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

300. 请问UI之间的场景切换要怎么写 [ 66%]

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