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

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

421. [求助]无法使用loader预先加载 [ 71%]

...s/mainpage/BtnNo.png", "res/mainpage/BtnYes.png" ]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); Laya.loader.on(Event.ERROR, this, onError);   private function onAssetLoaded(texture:Texture):void{             //c...

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

422. cocoscreator3d 与 laya3d的区别是什么呀 [ 71%]

...? var 与 name 的详细区别是什么? laya3D动画无法播放 Laya.Handler.create和new Laya.Handler有啥区别 Dialog和View用destroy和Laya.stage.removeChild有什么区别? Laya3d自定义shader Laya3D init error, must support webgl有个WIN10的电脑,系统是正版,家庭版的...

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

423. 播放声音出错,求指教 [ 71%]

...======= function playbgm() { SoundManager.playMusic("comp/bgm.mp3", 1, new Handler(this, bgmComplete)); } function bgmComplete() { console.log("播放完成"); }   附件 : --> 2018-03-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

424. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 71%]

...eError: ProgressBar is not a constructor at onLoadComplete (game.js:81) at Handler.__proto.runWith (laya.core.js:686) at ResInfo.loadComplete (laya.core.js:12634) at EventHandler.__proto.runWith (laya.core.js:687) at ResInfo.__proto.event (laya.core.js:465) at LoaderManager.__proto._endLoad (laya.co...

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

425. 怎么加载网络上的图片 [ 71%]

...baseUrl为:http://image.xxx.com/ 2. 使用Laya.loader.load("1.png",Laya.Handler.create(this,this.complete)); 3.//加载完成回调处理 complete():void{} 2018-05-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sogetsu 相关问题 ...

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

426. tween缓动时能不能实时得出当前的位置 [ 71%]

...有个update方法是可以的 Tween.to(_source, {x:endX, y:endY, update:Handler.create(this, tweenUpdate)},200, null, Handler.create(this, moveComplete));   2017-12-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 z1071051378 相关...

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

427. 关于使用资源版本控制加载出错问题 [ 71%]

..."version.json"; laya.net.ResourceVersion.enable(LoadingView_configUrl,Laya.Handler.create(this,this.onProLoadedBef),2);     _proto.onProLoadedBef =function() { var ProResArray = [ {url : "res/atlas/com/loading.atlas" , type : Laya.Loader.ATLAS},                      ]; Laya.loa...

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

428. LoaderManager的_loadAssets方法 completeHandler是否有内存问题 [ 71%]

LoaderManager的_loadAssets方法 completeHandler是否有内存问题 如图所示,在_loadAssets中创建Handler之后,可能会在load中没有被回收的情况,导致了Handler中还存在其他this的一个引用,导致内存泄露//complete && complete.clear(); //progress &am...

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

429. tween有这个一个bug [ 71%]

...延迟动画 Laya.Tween.to(point,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = true; })},800,Laya.Ease.backOut,null,i*400); timeline在一开始还在正常执行, 当有一半左右的ui元素进入到场景时, timeline循环卡住不动了, 等所有ui...

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

430. List翻页效果怎么实现 [ 71%]

...ctor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { sup...

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