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

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

11. 【LIST无法拖动】参照官方实例做的 [ 79%]

...(ui as GameUI1).nickname_ = this.nickname_;         this.list.removeSelf();         this.list.destroy();         this.removeSelf();         this.destroy();         Laya.stage.addChild(ui);      }     jumpScene()     {            let...

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

12. 注册函数里面 事件侦听函数的执行域 的详解 [ 79%]

...gin.on(Laya.Event.CLICK, null, ()=>{ if (this.loginDig) { this.loginDig.removeSelf(); this.loginDig.destroy(); } 2.this.btn_ok.on(Laya.Event.RIGHT_CLICK, this, this.OnBut_Open); OnBut_Open() : void { this.removeSelf(); this.destroy(); } 就是这两个函数,是不是就是使用lamb表达式...

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

13. 关于removeChildren、 destroydestroyChildren的疑惑 [ 79%]

...stage.numChildren; i++) { var object = Laya.stage.getChildAt(i); // object.removeSelf(); Laya.stage.removeChildAt(i); object.destroy(true); }该对象继续在屏幕上显示。。。(IDE版本1.7.10.bate) 使用Laya.stage.destroyChildren();是可以移除该对象的 2017-10-12 添加评论 免...

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

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

...s.display); } public destroy():void { this.display.destroy(); this.display.removeSelf(); super.destroy(); } }就是这段简单的测试代码,怎么销毁,内存还是创建后的大小 2017-02-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

15. 如何彻底关闭开放域排行榜 [ 78%]

...act && Laya.stage.contains(LayaSample.refract)) LayaSample.refract.removeSelf();//折射层移除舞台 if (Laya.stage.contains(LayaSample.spriteLeaderboard)) {//从舞台移除 LayaSample.textureLeaderboard.bitmap.alwaysChange = false;//将消耗性能的这句话关闭 LayaSample.spriteLea...

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

16. 微信小游戏,开放域(排行榜)关闭后再开始游戏与直接开始游戏相比较,掉帧严重! [ 76%]

...act && Laya.stage.contains(LayaSample.refract)) LayaSample.refract.removeSelf();//折射层移除舞台 if (Laya.stage.contains(LayaSample.spriteLeaderboard)) {//从舞台移除 LayaSample.textureLeaderboard.bitmap.alwaysChange = false;//将消耗性能的这句话关闭 LayaSample.spriteLea...

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

17. video怎么删除掉 [ 74%]

...deo怎么删除掉 像官方这样创建了一个video标签,但是我在removeself时,舞台删除了,video还在诶,点不了后面的东西。 2018-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 L...

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

18. laya.display.Node [ 73%]

...t = 0x7fffffff):Node 删除指定索引区间的所有子对象。 Node  removeSelf():Node 从父容器删除自己,如已经被删除不会抛出异常。 Node  replaceChild(newNode:Node, oldNode:Node):Node 替换子节点。 Node  setChildIndex(node:Node, index:int):Node 设置子节点的...

来源: laya_api 发布时间: 20170929

19. 物理引擎bug [ 71%]

...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

20. laya.display.Node_API3.0 [ 70%]

...e onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce Constructors constructor new Node(): Node Defined in laya/display/Node.ts:94 Returns Node Properties Optional _extra _extra: INodeExtra Defined in laya/di...

来源: Laya3.0_api 发布时间: 20231115