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

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

1. getChildAt有bug取到的值和_children[]不一样 [ 100%]

getChildAt有bug取到的值和_children[]不一样 提供测试用例 2019-01-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自:    public function getChildAt(index:int):Node {    ...

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

2. 想通过节点1获取子节点2,为啥getChildByName获取不到,并且,节点1的node._children的属性打印出来是空数组 [ 97%]

...子节点2,为啥getChildByName获取不到,并且,节点1的node._children的属性打印出来是空数组 想问个问题,我想通过节点1获取子节点2,为啥getChildByName获取不到,并且,节点1的node._children的属性打印出来是空数组,在UI编辑器里面看...

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

3. Sprite的destroy [ 95%]

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

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

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

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

5. Node.prototype.removeChildren移除计数有问题 [ 91%]

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

6. Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 [ 89%]

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

7. Naitve下解析xml出错 [ 87%]

...)).firstChild;这样的方式,可以获取到xml对象,调用protocols.children.length没有问题。但是在native模式下。获取出来的对象调用protocols.children.length出错。说是protocols.children对象为null.native下不支持Laya.Utils.parseXMLFromString吗? 附件 : --> a....

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

8. 底层渲染报错,原因未知,偶现 [ 84%]

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

9. Sprite 设置 cacheAs = "bitmap"报错 [ 84%]

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

10. 3D粒子特效第一次卡顿最终解决方案 [ 80%]

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