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

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

131. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 65%]

...aya.loader.load([{ url: "res/ui/LoadProgress.fui", type: Loader.BUFFER }], Handler.create(this, this.loadProgress)) this.token = token; } public loadProgress() { this.progressUI = UIBase.create(LoadProgress.UI_LoadProgress, "LoadProgress", LoadProgress.LoadProgressBinder.bindAll) this.progressUI.UIM...

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

132. 不存在的资源路径问题 [ 64%]

...der.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 this.onLibLoaded 这个,这种怎么跟呢?谢谢。 zeorro • 2017-11-02 17:13 private onLibLoaded():void { CommonLocator.parseJsonF...

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

133. Timer.clear 方法有问题 [ 64%]

...清理 石圣 • 2018-12-03 11:19 是的 如果改一下Timer里面存储handler的数据结构就可以实现了。这种需求很正常啊 不知道官方为啥说要避免这种写法。可能移除多个相同域的相同方法需要一个遍历操作,性能损耗比较大? 伯恩 • 2018-...

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

134. typescipt在一定范围内加载图片按照等比排列 [ 64%]

...png', 'comp/button.png', 'comp/image.png'];     myTestUI.imgList.renderHandler = new Laya.Handler(this, onImgListRender);   function onImgListRender(box: Laya.Box) {     let model = box.dataSource;     let panel = box.getChildByName('panel') as Laya.Panel;     let img = panel.getChi...

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

135. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 64%]

...Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则没有问题,否则会导致显示异常...

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

136. 保存数据的数组在回调的时候变为undifine [ 63%]

...能console出,那个list中的数据也存在,但没渲染出。 Laya.Handler.create 回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa...

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

137. ani时间轴动画问题 [ 63%]

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

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

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

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

139. Cannot read property 'load' of null [ 63%]

...p/28.jpg", "res/img/map/29.jpg", ]; Laya.loader.load(this.skins,laya.utils.Handler.create(this, this.LoadSuccess,null,false)); } private LoadSuccess() { ViewManager.getInstance().CreateView(contant.loginId,new LoginView()); ViewManager.getInstance().ShowView(contant.loginId); } public SwictMap(index...

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

140. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 63%]

...ad(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } ​ } ​ onComplete(): void { //初始化rank排行榜 var rank = new BigR...

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