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

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

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

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

22. UI组件对齐方式奇奇怪怪 [ 90%]

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

23. Animation 下的Event.COMPLETE 回调 [ 89%]

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

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

24. LayaAir IDE 2.2.0beta4 动画挂点(骨骼挂点)无效 [ 89%]

...aya.Sprite3D, Sprite3D: Laya.Sprite3D) { //递归调用 let index = 0; let child: Laya.Sprite3D = null; while (true) { child = root.getChildAt(index) as Laya.Sprite3D; if (!child) break; if (child.name == nodeName) { child.addChild(Sprite3D); Sprite3D.transform.localPosition = new Laya.Vector3(); re...

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

25. 关于gridSprite的疑问 [ 88%]

关于gridSprite的疑问 tiledMap中 取得maplayer后,在maplayer的 _childs中可以取得渲染的块数据:gridsprite.发现每个gridsprite的宽和高都是432,然后按照432的距离排列好所有的gridsprite. 第一个问题是,这个432是怎么来的,是引擎规定好的吗? ...

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

26. 请问预制体除了.prefab脚本文件外,还有没有其他的关联文件? [ 87%]

...是两个的.prefab脚本文件的结构并不完全类似?比如有的是child[]在前,有的在后. 想请问下.prefab脚本文件的结构和反序列化原理是什么样的?有没有其他的关联文件来控制他们呢?谢谢! 2018-06-04 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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

27. 2d项目RenderSprite3D出错,laya1.7.16 [ 87%]

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

28. Node.prototype.removeChildren移除计数有问题 [ 86%]

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

29. 坐标系原点 [ 86%]

...ite(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Sprite(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _parent.addChild(_child);就像上面那样,我需要在addChild的时候,_child默认在_parant的左下角~按上面的方法...

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

30. layaair ide 2.0.0 beta2 读取.lh文件报错 [ 86%]

... 0,    -1   ],   "scale":[    1,    1,    1   ]  },  "child":[   {    "type":"Sprite3D",    "props":{     "isStatic":false,     "name":"jacket_default"    },    "customProps":{     "layer":0,     "translate":[      0,      0,      0 ...

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