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

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

1. parent加载多个child,parent不响应鼠标事件? [ 100%]

parent加载多个child,parent不响应鼠标事件? parent加载了child1,child2,child3, parent.on(Event.MOUSE_DOWN, this, function(){     trace("parent被点击了!"); });     其中child1,child2,child3都是load图片的Sprite,为何parent(它也是个Sprite)识别不到鼠标事...

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

2. UI布局计算bug [ 98%]

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

3. 3d对象使用addChild后localPosition没有变化 [ 98%]

3d对象使用addChild后localPosition没有变化 讲世界中的对象add进某个子节点后localPosition,localScale等都没有发生变化,结果对象移动到诡异的位置去了blob:https://ask.layabox.com/9fe227 ... 55d85 附件 : --> 2020-08-19 添加评论 免费帖 --> 分享 微博 Q...

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

4. 性能优化建议 [ 97%]

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

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

5. child被释放,导致渲染报错的问题 [ 96%]

child被释放,导致渲染报错的问题 报错如图所示,看堆栈是render方法调用_childs方法时,报错的原因应该是child的_style为空(附图已更新)原因很可能是因为child被释放了,但是在addChild和addChildAt的入口添加加入的子级是否被释放...

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

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

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

7. IDE扩展的时候调用child_process不显示窗口 [ 94%]

IDE扩展的时候调用child_process不显示窗口 在扩展IDE的插件工具时发现子进程窗口不显示 例子: var batPath = "xxxx\\xxx.bat"; child_process.execFile(batPath ,[""],(error,stdout,stderr)=>{ });   在编辑器菜单下调用这个bat,没显示控制台窗口 加上...

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

8. APP打包后运行效果与调试效果不一致(sprite,child) [ 94%]

APP打包后运行效果与调试效果不一致(sprite,child) Laya.timer.frameLoop(1,this,this.run()); public run():void{    var childs:Array<Laya.Sprite> = this._childs;    childs.sort(this.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{    return left.y...

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

9. child被释放的问题2 [ 94%]

child被释放的问题2 https://ask.layabox.com/question/11503 原帖的内容经过修正,这个贴是重发的新帖 2018-02-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 没有demo我...

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

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