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

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

91. 导出类型为文件模式时,只能是通过Laya.Scene.load加载返回传递参数得到视图对象么? [ 67%]

... Devin 赞同来自: 怎么实例化? Laya.loader.load("xxx.json", Laya.Handler.create(this, this.onCompleteCall), .....);   let xxx:View = ? 这里怎么实例化这个 xxx.json为视图对象? 2018-10-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...

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

92. 我二进制资源load之后,为什么通过getRes获取不到。 [ 67%]

...config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.log('资源加载完成!!',e,a,b); var cfg = Laya.Loader.getRes("config/data.txt"); console.log('...

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

93. 加载同一个json文件第一次正常,第二次json文件里面数据就只有一条了。 [ 67%]

...接 提交 2 个回复 Yangcy 赞同来自: Laya.loader.load("abc.json", Handler.create(this, onAssetLoadedSound), Handler.create(this, progressHandler), Loader.SOUND);   第一次加载出来: [list=none] [*]0: {column: "0", duration: "0", mode: "点", time: "3076"}[/*] [*]1: {column: ...

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

94. Dialog.show showEffect参数在微信真机上问题 [ 67%]

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

95. 资源加载后 回调 [ 67%]

...源,每次加载完成后回调loadselectanimation Laya.loader.load(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在问题是,同一个资源第二次加载时候,就不执行回调函数了. 是不是第一次加载以后有缓存了,第二次就不加载...

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

96. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 67%]

...位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError));   // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` ​ 由于本例不需要使...

来源: Laya2.0_文档 发布时间: 20210715

97. Laya.tween设置了完成回调函数,但是偶尔会出现不回调问题 [ 67%]

...ner=Laya.Tween.to(item.value, toProps, item.duration *1000, item.easeType, Handler.create(this,this.__tweenRepeatComplete,[item])); 这代码只是个示例 item.tweener.update=Handler.create(this,this.__tweenUpdate,[item],false);}还有我感觉当Tween.to 第二个参数为{} 时候,应该...

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

98. Dialog用法——弹出回调 [ 66%]

...量加载json文件,然后等这些文件统一加载完后回调 Laya.Handler.create 加载图片回调参数问题 Dialog限制拖动区域有什么方法 const 用法 能否恢复Animation.getGraphicBounds在1.6时用法 问题状态 最新活动: 2017-08-14 14:02 浏览: 942 关注: 2 人

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

99. 缓动画Bug,给了回调函数之后是直接过时间后执行回调函数,但是之前缓动画不会执行 [ 66%]

... = 0; Laya.Tween.to(this.bir, { x: 200, y: 200 }, 2000, () => { }, Laya.Handler.create(this, this.change));     这里面会直接过两秒执行this.change,而前面x:0->200  y:0->200不会执行  是什么原因??????     2017-08-09 添加评论 免费帖 --> 分享 微...

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

100. 使用百度地图 · LayaAir3.0文档 · LAYABOX [ 66%]

...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaiduCoord作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } } 由于本例不需要使用LayaAir...

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