大约有 5 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0028 秒)
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
...ex = this.getChildIndex(node); if (index !== this._children.length - 1) { this._children.splice(index, 1); this._children.push(node); this._childChanged(); } ...
来源: Laya_社区 发布时间: 20191203
...(); this.resultMatrix=new Matrix(); this._children=[]; //帧变换缓存 this._resultMatrixCache=[]; } 3.在Bone 的 update 函数添加参数 clipIndex 并在函数的最后修改成 var i=0,n=0; var tBone; for...
来源: Laya_社区 发布时间: 20190805
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
...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