大约有 239 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0035 秒)
Laya_社区(175) Laya2.0_api(35) Laya3.0_api(8) Laya3.0_文档(6) laya_api(5) Laya_示例(5) Laya2.0_文档(4) Laya2.0_示例(1)
... treeData += "<dir label='box1' isOpen='true'>" + "<file label='child1 ' />" + "<file label='child2 ' />" + "<file label='child3 ' />" + "<file label='child4 ' />" + "<file label='child5 ' />" + "</dir>" + "<dir label='box2' isOpen='false'>" + "<fil...
来源: Laya3.0_文档 发布时间: 20240910
...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
...播放了 _gameTableScene["donghua"+ transformToDesignIndex(msg.index)]._childs[0].on(Event.COMPLETE,null,OnAnimation()); 是我写的不对吗? 2018-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica -...
来源: Laya_社区 发布时间: 20180323
...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
关于gridSprite的疑问 tiledMap中 取得maplayer后,在maplayer的 _childs中可以取得渲染的块数据:gridsprite.发现每个gridsprite的宽和高都是432,然后按照432的距离排列好所有的gridsprite. 第一个问题是,这个432是怎么来的,是引擎规定好的吗? ...
来源: Laya_社区 发布时间: 20180311
...是两个的.prefab脚本文件的结构并不完全类似?比如有的是child[]在前,有的在后. 想请问下.prefab脚本文件的结构和反序列化原理是什么样的?有没有其他的关联文件来控制他们呢?谢谢! 2018-06-04 添加评论 免费帖 --> 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20180604
...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
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
...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
... 0, -1 ], "scale":[ 1, 1, 1 ] }, "child":[ { "type":"Sprite3D", "props":{ "isStatic":false, "name":"jacket_default" }, "customProps":{ "layer":0, "translate":[ 0, 0, 0 ...
来源: Laya_社区 发布时间: 20181013