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

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

41. 背景音乐文件太大 播放延迟 [ 69%]

...gr.EVENT_LIST)             }), Laya.Loader.SOUND, 0, true, null, false)         })       public static playBackGroundMusic(url: string, start: number) {         if (soundMsg.isPlayingBgMusic) {             let path = "remote/music/" + ur...

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

42. URL的代码修改建议 [ 69%]

...RL的代码修改建议 URL.formatURL=function(url,base){ if (!url)return "null path"; //if (url.indexOf(":")> 0)return url;   这里建议是先执行customFormat 再去执行if (url.indexOf(":")> 0)return url;  因为用户可能有特殊的customFormat流程,所以应该是这两句话...

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

43. 在使用资源版本控制时,URL.formatURL中有个bug [ 69%]

...URL中有个bug public static function formatURL(url:String, base:String = null):String { if (!url) return "null path"; //如果是全路径,直接返回,提高性能 if (url.indexOf(":") > 0) return url; //自定义路径格式化 if (customFormat != null) url = customFormat(url, base); }  ...

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

44. 怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 [ 68%]

...oy(destroyChild:Boolean = true):void {             if(effect3D != null){                 effect3D.destroy();                 effect3D = null;             }             super.destroy(true);             Laya.loader.clearRes(this._path);    ...

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

45. 怎么实现同一个工程内分包? [ 67%]

...entListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.scaleMode = StageScaleMode.NO_SCALE; this.stage.align = StageAlign.TOP_LEFT; IFlash.setSize(1000, 600); //2D项目中设置场景尺寸 IFlash.setOrient...

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

46. Sprite-节点控制 [ 67%]

...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { ape1.rotation += 2; ape2.rotation -= 4; } } }

来源: Laya2.0_示例 发布时间: 20241002

47. Sprite-轴心点 [ 67%]

...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { sp1.rotation += 2; sp2.rotation += 2; } } }

来源: Laya2.0_示例 发布时间: 20241002

48. 加载成功要怎样判断呢? [ 66%]

...不行也不行→Laya.loader.load(path, Handler.create(this, onLoaded), null, Loader.XML, 1, false, null, true);  cache和ignoreCache这两个参数有什么作用?要怎样设置能重新加载? 版本1.6.2 2017-03-25 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 你是想对加载...

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

49. skin 大于512 的释放问题 [ 66%]

...s.imgItem.graphics.clear(); this.imgItem.removeSelf(); this.imgItem.skin = null; this._sprFight.graphics.clear(); this._sprFight.removeSelf(); this._sprFight = null; }   像这样写 dispose(),后,  imgItem 的skin ( 'forging/000' + (type + 1) + '.png') 会不会自动从内存释...

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

50. 引擎中的修改意见 [ 66%]

...Index][frameIndex]){ return _graphicsCache[aniIndex][frameIndex]; } return null; } 2、Text:语言包的使用形同虚设: public function set text(value:String):void { if (this._text !== value) { var a:Array = (value + "").split("|"); var p:Array; if(a.length > 1){ p = a.slice(1); lang(a[0]...

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