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

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

31. destroy节点后,报错 [ 68%]

...); for(let i=node.numChildren-1;i>=0;i--){ obj= node.getChildAt(i); obj.removeSelf(); if(obj.name=='Guan'){ this.guans.push(obj); }else if(obj.name=='Fangkuang'){ this.fangkuangs.push(obj); }else if(obj.name=='Cylinder'){ this.cylinders.push(obj); }else{ console.log('recycle loser'); } } } 开心...

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

32. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 67%]

...ld(hero) Laya.timer.once(3000, this, gameOver) } function gameOver() { map.removeSelf() play.removeSelf() over = new GameOverUI() over.txt_score.text = "25" over.btn_restart.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(over); } hero类: (function() { function Hero(type, hp) { Hero.__super....

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

33. Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 [ 67%]

...  } 出现问题原因:假如子控件在onEnable或者onAwake里调用removeSelf()(其它能从父控件移除的方法也一样)时,那么该函数就会报错,报错位置就是for循环里的child是undefined,不包含_getBit方法,出错原理是子控件从父控件移除会改...

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

34. 分享:销毁龙骨动画! [ 65%]

...e.stop();//停止龙骨动画播放 removeEvent();//移除事件 mArmature.removeSelf();//从显示列表移除龙骨动画本身 mArmature.removeChildren();//从显示列表移除龙骨动画子对象 mArmature.destroy(true);//从显存销毁龙骨动画及其子对象 mFactory.destroy();//释放...

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

35. Animation创建和销毁的问题 [ 62%]

...board.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testAnim1 = null; testAnim2.clear(); testAnim2.removeSelf(); testAnim2 = null; Loader.clearRes("res/fish_1/stand.atlas", true); Loader.clearRes("res/fish_1/attack.atlas", true); trace("移除动画完成"); } } ...

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

36. 复杂UI类卸载 [ 61%]

...含了各种类型的组件,当需要卸载GameUI类的时候,gameUI.removeSelf();gameUI.destroy(true);gameUI = null ,用这种方式是否可行?(里面的子组件没有在外部引用过) 2016-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

37. 移除ANI [ 61%]

...是 动画依然存在   private backindex():void{         this.removeSelf();        Laya.Scene.open("Gameindex.scene");   }       2019-12-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为...

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

38. 打地鼠游戏遇到的问题 [ 60%]

...和地图层级问题,锤子显示在地图下面了 2、LayaSimple.game.removeSelf()此句无效,未能移除 3、为何预览到的canvas被缩放了,代码里写的不缩放,见下图 谢谢 附件 : --> 2018-03-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

39. 物理引擎bug [ 60%]

...boneCtn.numChildren;i++){ let b=this.boneCtn.getChildAt(i); b.destroy(); b.removeSelf(); }这样写也不行 2019-09-06 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个问题没有上传demo 无法调试和验证,  请上传复现demo以供查看解决这个问题 2019-09-07 0 0 分...

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

40. WebGL模式下清理资源有问题 [ 60%]

...列表下的显示、数据和资源一并移除。 sp.destroy(true); sp.removeSelf(); sp=null; Loader.clearRes(url,true);    2017-01-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 laya5652 相关问题 laya2的Scene默认是文件...

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