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

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

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. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 96%]

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

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

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

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

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

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

7. Sprite 设置 cacheAs = "bitmap"报错 [ 88%]

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

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

...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. 富文本过程中我遇到的问题以及解决方法(超链接换行以及无法接收超链接鼠标事件以及br或者 标签会崩溃报错的问题) [ 84%]

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

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

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