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

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

221. Laya.loader Progress回调形同虚设 [ 68%]

...this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded),Handler.create(this, onProgress)); } private function onProgress(v:Number):void { trace("onProgress",v); }    不管添加多少资源,onProgress都只会调用一次  ...

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

222. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 68%]

...链接 提交 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     matrix.a = -1;  ...

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

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

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

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

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

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

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

225. Panel滚动条滑块位于最下方 [ 67%]

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

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

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

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

228. 限制区域拖动效果,为什么会无法限制呢? [ 67%]

...eVersion.FILENAME_VERSION);  function beginLoad() { Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); }  function onLoaded() { Laya.stage.addChild(new GolfMainUI()); }   附件 : --> 2018-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

229. 有时候飘字的时候会在其他地方有一道黑条是什么原因? [ 66%]

...什么原因的吗?~~~~~~~~~~~~~ IDE中自动打包图集后最后在res/atlas中只有jsonpng没有atlas,不知道原因是什么 module写法的模块无法使用,其他地方使用会报错 求让Particle2D的粒子能从最开始的地方播放的方法!! FBXTools.exe把模型拖上...

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

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

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

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