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

大约有 157 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0037 秒)

1. UI布局计算bug [ 100%]

...m_Parent的宽高为720*1280。 m_Parent下放置两个box,分别取名m_Child_1跟m_Child_2,其中m_Child_1设置width为720,height为1280,m_Child_2设置布局参数为:left、right、top、bottom均为0,目的是初始化后m_Child_2的宽高为720*1280。 接下来是bug描述:布...

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

2. 骨骼动画销毁后再创建,报错 [ 98%]

...to._renderAll __proto._graphics __proto._transform __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs _...

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

3. 性能优化建议 [ 98%]

性能优化建议 能不能添加个类似于ps的功能,当给child_0child_1设置了指定属性的后,发布代码时会将child_0child_1嵌入到parent里面,合成一张图,child_0child_1失去 所有 属性无法调用,运行时不遍历这2个子级,child_0child_1成...

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

4. TypeError: this._childs is null [ 94%]

TypeError: this._childs is null 用了Laya.stage.destroyChildren();之后出错 TypeError: this._childs is null 看不懂啊! 救命啊!!!!!!   还有火狐提示 HTTP "Content-Type" 中的 "text/html" 不支持。媒体资源加载失败。 无法播放媒体。没有相应格式的...

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

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

...   }         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. TypeScript 泛形方法如何传TYPE? [ 92%]

TypeScript 泛形方法如何传TYPE? GetComponetInChild(node:laya.display.Node):Laya.Animator { for (var index = 0; index < node._childs.length; index++) { var element:Laya.Animator = node._childs[index].getComponentByType(Laya.Animator); if (element!=null) { return element; }else this.GetCompo...

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

7. Node的_childs这个属性为什么没有写到文档里?如果不推荐用这个,那应该用怎么拿所有子成员? [ 92%]

Node的_childs这个属性为什么没有写到文档里?如果不推荐用这个,那应该用怎么拿所有子成员? 2017-11-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你可...

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

8. UI组件对齐方式奇奇怪怪 [ 92%]

...Box(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Box(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _child.bottom = 0 _parent.addChild(_child); 按理说 我设置了额child的bottom为0 应该是 靠底部对齐才对啊 为什么 ...

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

9. Animation 下的Event.COMPLETE 回调 [ 92%]

...播放了 _gameTableScene["donghua"+ transformToDesignIndex(msg.index)]._childs[0].on(Event.COMPLETE,null,OnAnimation()); 是我写的不对吗? 2018-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica -...

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

10. 2d项目RenderSprite3D出错,laya1.7.16 [ 91%]

...peError: Cannot read property 'visible' of null at RenderSprite3D.__proto._childs (http://xxxx/game/bin/h5/Main.m ... 576:30) at Sprite.__proto.render (http://xxxx/game/bin/h5/Main.m ... 575:43) at RenderSprite3D.__proto._childs (http://xxxx/game/bin/h5/Main.m ... 576:46) at Sprite.__proto.render (h...

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