大约有 27 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0039 秒)
getChildAt有bug取到的值和_children[]不一样 提供测试用例 2019-01-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: public function getChildAt(index:int):Node { ...
来源: Laya_社区 发布时间: 20190129
...子节点2,为啥getChildByName获取不到,并且,节点1的node._children的属性打印出来是空数组 想问个问题,我想通过节点1获取子节点2,为啥getChildByName获取不到,并且,节点1的node._children的属性打印出来是空数组,在UI编辑器里面看...
来源: Laya_社区 发布时间: 20190907
...ex = this.getChildIndex(node); if (index !== this._children.length - 1) { this._children.splice(index, 1); this._children.push(node); this._childChanged(); } ...
来源: Laya_社区 发布时间: 20191203
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
... } this._onActive(); for (i=0,n=this._children.length;i < n;i++){ var child=this._children[i]; (!child._getBit(/*laya.Const.NOT_ACTIVE*/0x01))&& (child._activeHierarchy(activeChangeScripts)); ...
来源: Laya_社区 发布时间: 20190730
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
...er (/***/bin/libs/laya.core.js:18283:43) at RenderSprite3D.__proto._children (/***/bin/libs/laya.core.js:8676:40) at IsoMap.__proto.render (/***/bin/libs/laya.core.js:18283:43) at RenderSprite3D.__proto._children (/***/bin/libs/laya.core.js:8676:40) at Sprite.__proto.rend...
来源: Laya_社区 发布时间: 20190108
...86) at SpineSkeleton.render (laya.core-56a0e.js:1:335975) at RenderSprite._children (laya.core-56a0e.js:1:139465) at Box.render (laya.core-56a0e.js:1:335975) at RenderSprite._children (laya.core-56a0e.js:1:139465) at Sprite.render (laya.core-56a0e.js:1:335975) at RenderSprite._children (laya.core-56...
来源: Laya_社区 发布时间: 20230714
...= this._getWords(); if (words == null && (!this._children || this._children.length == 0)) return false; if (words) { for (var i = 0, n = words.length; i < n; i++) { out.push(w...
来源: Laya_社区 发布时间: 20200724
...efine,spriteDefine,materialDefine); } } //递归获取子对象 if (model._children) { for (var i: number = 0; i < model._children.length; i++) { this.compileShader(model._children[i]); } } } 2019-04-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20190404