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

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

1. Sprite的destroy [ 100%]

Sprite的destroy destroyChildren() { if (this._children) { for (var i = 0, n = this._children.length; i < n; i++) { this._children[0].destroy(true); } } 这几行代码来自laya.core.js的12544行开始的,for循环里的this._children[0]是不是应该是this._children[i]?还是我的使用...

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

2. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 89%]

...ex = this.getChildIndex(node);                 if (index !== this._children.length - 1) {                     this._children.splice(index, 1);                     this._children.push(node);                     this._childChanged();                 }   ...

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

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

...();         this.resultMatrix=new Matrix();         this._children=[];         //帧变换缓存         this._resultMatrixCache=[];     } 3.在Bone 的 update 函数添加参数 clipIndex 并在函数的最后修改成         var i=0,n=0; var tBone; for...

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

4. Node.prototype.removeChildren移除计数有问题 [ 86%]

Node.prototype.removeChildren移除计数有问题 直接看源码,此问题不管高低版本都存在: removeChildren(beginIndex = 0, endIndex = 0x7fffffff) { if (this._children && this._children.length > 0) { var childs = this._children; if (beginIndex === 0 && endIndex &g...

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

5. Node.ts 节点销毁之后为什么要注释掉 timer 的清理操作。 [ 84%]

...t && this._parent.removeChild(this);  //销毁子节点 if (this._children) { if (destroyChild) this.destroyChildren(); else this.removeChildren(); } this.onDestroy();  this._children = null;  //移除所有事件监听 this.offAll();  //移除所有timer //this.timer.clearAll(this); } ...

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