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

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

1. 分享:销毁龙骨动画! [ 100%]

...dBtn.on(Event.CLICK, this, onAddBtn); } private function onDesBtn():void { destroy(); } private function onAddBtn():void { startFun(); } public function startFun():void { mAniPath = "Dragon/Dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.loadAni(mAniP...

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

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

怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 角色,放几个技能后内存从 60 M 长到 90M,清理后,内存没下降。   清理方法            override public function destroy(destroyChild:Boolean = true):void {             if...

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

3. Uncaught TypeError: Cannot read property '_tf' of null [ 88%]

...enGuide1(_guideImage );     Tween.clearAll(_guideImage);   _guideImage.destroy(true);   _guideImage.dispose();   _guideImage = null; }   public function tweenGuide1(image:Image):void {    image.x = 0;    image.y = 0;    image.scale(1,1);     Tween.to(image,{scaleX:0.5,scaleY:0.5},600...

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

4. TiledMap销毁的问题,TiledMap销毁后屏幕变灰,不能显示 [ 88%]

... _map.createMap("res/race.json",viewRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发现问题出现在TiledMap相关的代码里面 在TiledMap的destroy方法内 /** * 销毁地图 */ public function destroy():void { ....... //...

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

5. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 87%]

...值: " + _proMask.scaleX); } /** *@inheritDoc */ override public function destroy(destroyChild:Boolean = true):void { super.destroy(destroyChild); _proMask && _proMask.destroy(_proMask); _progress && _progress.destroy(destroyChild); _proMask = null; _progress = null; } /** * 进度...

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

6. TimeLine调用destroy报错&执行完成后回到起点 [ 87%]

TimeLine调用destroy报错&执行完成后回到起点 使用的是官方的TimeLine demo 问题1:如果在onComplete中调用destroy报错 问题2【用法问题请无视】:如果注释掉“turnUp”, 在动画执行完成后, 图片的x,y坐标变成了起始坐标   报错信...

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

7. 分享:IDE使用SWF动画的销毁与反复创建 [ 85%]

...             testView.mc.stop();             testView.mc.destroy();//销毁MC             testView.removeChildren();             testView.destroy();             testView.removeSelf();             //destroy的时候movieclip把小图都清掉了...

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

8. bug:laya.Scene.destroy [ 84%]

bug:laya.Scene.destroy var list=laya.display.Scene.unDestroyedScenes; for (var i=0,n=list.length;i < n;i++){//这里缓存了长度,但是在 __proto.destroy=function(destroyChild){ (destroyChild===void 0)&& (destroyChild=true); this._idMap=null; _super.prototype.destroy.call(this,dest...

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

9. 创建laya的视图销毁destroy()清除不了 [ 83%]

创建laya的视图销毁destroy()清除不了 创建laya的视图销毁destroy()清除不了。  class Mail2View extends laya.display.Sprite { private display:ui.mail.mail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this...

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

10. Laya 绑定显示内容到骨骼动画 [ 83%]

...rce.x=source.offestX+position.x; source.y=source.offestX+position.y; } }  destroy(destroyChild?:boolean):void{ this.timer.clear(this,this.__updateBinds); this.__bindList.length=0; this.__bindList=null; super.destroy(destroyChild); } }   2. 可绑定到骨骼的内容 /** * 可绑定到骨骼的...

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