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

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

1. 为啥我在批量removeself 会报错卡死 [ 100%]

为啥我在批量removeself 会报错卡死 override public function removeSelf():Node { this.scaleX = 1; this.scaleY = 1; this.alpha = 1; this.pos(0,0); this.filters = []; if(selectImg != null) { selectImg.removeSelf(); } this.mouseEnabled = true; if(this.visible == false) { this.visible = true; ...

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

2. dialog.removeSelf is not a function [ 95%]

dialog.removeSelf is not a function (一个界面)this.ui = new ui.common.PlaneGameInfoDialogUI;。。。(关闭按钮)this.ui.ibtn_close.on(Laya.Event.CLICK,this,this.ui.close);。。。(点击之后)Uncaught TypeError: dialog.removeSelf is not a function....求助大神谢谢啦~~~ 20...

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

3. removeSelf()这个方法调用后是不是会移除对象上添加的一切东西? [ 89%]

removeSelf()这个方法调用后是不是会移除对象上添加的一切东西? 我创建一个ui界面。。。在这个上面调用了.on的点击事件,调用了定时器。。还添加了其它一些image,sprite,label等对象。。   如果我调用this.removeSelf()是不是会把t...

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

4. 关于Sprite回收 [ 86%]

...             if(item instanceof Item) {                 item.removeSelf();                 item.visible = true;                 Pool.recover("item", item);                 item.graphics.clear();             }    item的父容器是通过回收池获取...

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

5. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 84%]

...Armature(armature:Laya.Skeleton){ if(armature == null){ return; } armature.removeSelf(); this.mArmatureUnUsed.push(armature); }  public playFail(armature:Laya.Skeleton){ if(armature == null){ return; } armature.play('fail',true); }  public playStand(armature:Laya.Skeleton){ if(armature == null){ r...

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

6. 事件函数作用域问题 [ 84%]

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

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

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

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

8. skin 大于512 的释放问题 [ 83%]

...sprFight); } dispose(): void { this.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

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

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

10. box2d引擎报错问题 [ 82%]

...ya.core.js:21262)   相关逻辑代码如下: moveSuccess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Pool.getItemBy...

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