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

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

291. 1整天了,还是没解决加载本地文件问题 [ 69%]

...ile:///E:/layabox/layaair-doc-master/project/AS3/AirWar/lesson8/bin/h5/res/atlas/gameUI.atlas. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. 另外 LayaIDE 编译打开经常只有黑屏,或者: 未定义任何生成任务。使用 "i...

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

292. meshcollder卡成狗 是什么原因????????????????????????????????? [ 69%]

...,字体模糊是什么原因? IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 LayaAirIDE无法打开代码编辑器,原因初次安装填写路径错误 在js代码中,let 是什么意思 GradientDataNumber warning是什么 看官方2.0...

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

293. IDE发布之后,在res下并没有任何资源,这是什么情况啊? [ 69%]

...的地方),资源路径写错了。改成 Laya.loader.load("res/atlas/Resources.json",laya.utils.Handler.create(this,this.onReader),null,laya.net.Loader.ATLAS);就好了 Buzhihew • 2017-01-11 15:50 @Monica:.......我.....总之谢谢啊啊啊 Monica • 2017-01-11 15:51 @Buzhihew:不...

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

294. JS中利用New创建出来的对象和相应内存,如何主动去释放? [ 69%]

...mple){  (function(){    Laya.init(640,1027);    Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS)})(); function onLoaded(){  var karaok = new Karaok(); // new出来的内存 如何主动销毁? } })(window.LayaSample || (window.LayaSample={}));...

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

295. 报无法找到资源,未升级ide之前不报错 [ 69%]

...mber = 0; i < len; i++) {         aniFrames.push("resources/UI/role/atlasAni2/139x/" + name + i + ".png");     }     Laya.Animation.createFrames(aniFrames, name); }     附件 : --> 2023-07-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

296. 图集怎么切割,如图所示,就是我只要第2和第3张图片组合,实现飞机动画效果? [ 69%]

...出,他们又会被放到一起去了 Laya.Animation.createFrames("res/atlas/war.atlas","hreo_fly") ; 我用这个createFrames实现飞机动画效果,旧版本,可以加多个单独的图片,, 但最新版的报错:supplied parameter do not match any signature of call target(提供的参...

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

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

...onConfigLoaded=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 test...

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

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

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

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

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