大约有 338 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
Laya_社区(102) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya3.0_文档(7) Laya2.0_文档(6) Laya_示例(2) Laya2.0_示例(1)
...); 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
...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
... } 出现问题原因:假如子控件在onEnable或者onAwake里调用removeSelf()(其它能从父控件移除的方法也一样)时,那么该函数就会报错,报错位置就是for循环里的child是undefined,不包含_getBit方法,出错原理是子控件从父控件移除会改...
来源: Laya_社区 发布时间: 20190730
...e.stop();//停止龙骨动画播放 removeEvent();//移除事件 mArmature.removeSelf();//从显示列表移除龙骨动画本身 mArmature.removeChildren();//从显示列表移除龙骨动画子对象 mArmature.destroy(true);//从显存销毁龙骨动画及其子对象 mFactory.destroy();//释放...
来源: Laya_社区 发布时间: 20170406
...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
...含了各种类型的组件,当需要卸载GameUI类的时候,gameUI.removeSelf();gameUI.destroy(true);gameUI = null ,用这种方式是否可行?(里面的子组件没有在外部引用过) 2016-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20161212
...是 动画依然存在 private backindex():void{ this.removeSelf(); Laya.Scene.open("Gameindex.scene"); } 2019-12-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为...
来源: Laya_社区 发布时间: 20191224
...和地图层级问题,锤子显示在地图下面了 2、LayaSimple.game.removeSelf()此句无效,未能移除 3、为何预览到的canvas被缩放了,代码里写的不缩放,见下图 谢谢 附件 : --> 2018-03-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180305
...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
...列表下的显示、数据和资源一并移除。 sp.destroy(true); sp.removeSelf(); sp=null; Loader.clearRes(url,true); 2017-01-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 laya5652 相关问题 laya2的Scene默认是文件...
来源: Laya_社区 发布时间: 20170103