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

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

971. ani时间轴动画问题 [ 53%]

ani时间轴动画问题 Laya.loader.load("res/atlas/move.json", Laya.Handler.create(this, onLoaded)); function onLoaded() {     //创建一个Animation实例     var tl = new Laya.Animation();     //加载动画文件     tl.loadAnimation("TimeLine.ani");     //添加到舞台   ...

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

972. Dialog.show 的 showEffect参数在微信真机上的问题 [ 53%]

...个Dialog 代码如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不...

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

973. Sprite graphics的显示比例问题 [ 53%]

...racter = new Laya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(100, 100, 100, nu...

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

974. Laya.loader.load 加载时长10秒,的progress 回调只会调用一次,0.2就再也不会被调用到了。为什么啊 [ 53%]

...复 Monica - 知识达人 赞同来自: 加载进度的回调你是用的Handler.create吗?如果是的话需要设置create里边的最后一个参数为false 2017-09-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****367 相...

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

975. 微信小游戏环境下,load的参数ignoreCache设置为true时,并没有重新下载资源 [ 53%]

...-11-21 19:41 Laya.loader.load("https://xxxx/image.png", new Laya.Handler(this, this.imageLoaded), null, Laya.Loader.IMAGE, 0, false, "", true); 代码是这样的,但是这个url的资源覆盖以后,还是不会发生变化

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

976. 多线程Worker · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

... //加载引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例UI界面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; WorkerLoader.workerPath = "libs...

来源: Laya3.0_文档 发布时间: 20251010

977. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...width = 400; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); }); } // 模拟进度条加载 private changeValue(): void { if (this.progressBar.value &gt...

来源: Laya3.0_文档 发布时间: 20251010

978. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 53%]

...法下载.代码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

979. 二次开发 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...etString( "value" )); } catch (JSONException e) { e.printStackTrace(); } m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new JSONObject(); try { obj.put("value", "Hello JS!"); } catch (JSONException e) { e.printStackTrace(); } ExportJavaFunction.CallBackTo...

来源: Laya3.0_文档 发布时间: 20250422

980. http请求接口时,app闪退。这是http请求的一个demo 哪位大佬帮看一下 [ 53%]

...赏了。 private static onRequestComplete(hr:Laya.HttpRequest, call:Laya.Handler):void { call.runWith(hr.data); Http._requests.push(hr); } 2019-06-10 0 1 分享 微博 QZONE 微信 1560063291用户 赞同来自: 已解决,联系我 xyz 2019-06-10 0 0 分享 微博 QZONE 微信 为什么被折叠?...

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