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

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

1. TypeScript 泛形方法如何传TYPE? [ 100%]

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

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

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

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

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

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

4. Node.prototype.removeChildren移除计数有问题 [ 95%]

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

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

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

6. laya.ui.Tree_API3.0 [ 86%]

...= "<root><item label='box1'><abc label='child1'/><abc label='child2'/><abc label='child3'/><abc label='child4'/><abc label='child5'/></item><item label='box2'><abc lab...

来源: Laya3.0_api 发布时间: 20231115

7. layacmd atlas报错 [ 86%]

...6fdebd4:/# npm -v 3.10.10    root@6c4616fdebd4:/# layacmd atlas internal/child_process.js:319 throw errnoException(err, 'spawn'); ^ Error: spawn EACCES at exports._errnoException (util.js:1020:11) at ChildProcess.spawn (internal/child_process.js:319:11) at exports.spawn (child_process.js:369:9) at...

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

8. layacmd在centOS 6.5上运行出错 [ 84%]

...cking complete All Work complete finish. tsc -p . --outDir bin/js internal/child_process.js:323 throw errnoException(err, 'spawn'); ^ Error: spawn EACCES at _errnoException (util.js:1024:11) at ChildProcess.spawn (internal/child_process.js:323:11) at exports.spawn (child_process.js:502:9) at LayaPro...

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

9. 坐标系原点 [ 84%]

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

10. laya.ui.Panel [ 83%]

...上的 Y 轴坐标信息。 Sprite name : String节点名称。Node  numChildren : int[override] [read-only] 子对象数量。 Panel parent : Node[read-only] 父节点。Node pivotX : NumberX轴 轴心点的位置,单位为像素,默认为0。轴心点会影响对象位置,缩放中心...

来源: Laya2.0_api 发布时间: 20190513