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

大约有 237 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0043 秒)

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

...的链接 提交 1 个回复 Laya_XS 赞同来自: 你可以通过对象的numChildren获取,对象里的子元素个数,然后就可以获取相关的子对象了。 2017-11-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 a1005945...

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

22. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 74%]

... destroyed displayedInStage hideFlags id is3D layer lineCount maxLineCount numChildren parent pixelLineRenderer scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLine addLines bubbleEvent callLater clear clearTimer clone...

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

23. 希望增加基于name的节点操作 [ 72%]

...容相关的链接 提交 1 个回复 w1114367261 赞同来自: Laya.stage.numChildren; 你可以直接获取子物体的数量然后根据数量进行for循环获取name为b的所有物体 Laya.stage.getchildAt(i);//根据下标获取物体 2018-04-16 0 0 分享 微博 QZONE 微信 为什么被折...

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

24. laya里面子节点设置zOrder值时,放在函数中调用 [ 72%]

...t(i).zOrder=100-i; }; last_one() function last_one(){     var n=game.box.numChildren;     game.box.removeChildAt(n-1); }; //默认zOrder最大的为第一个;     2018-03-05 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

25. 【Native BUG】Native下对根结点设置filter,无法更新到每个子节点,web是ok的 [ 71%]

...: Laya.Node, set: boolean) {             for (var i = 0; i < node.numChildren; i++) {                 let sprite = node.getChildAt(i) as Laya.Sprite;                 if (sprite) {                     //if (sprite instanceof Laya.Text) {                   ...

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

26. 父节点如何得到其子节点的个数 [ 71%]

...该方法返回int类型的所以子物体个数var i :int ; i = this.var.numChildren;//获取子物体个数 //获取单个子物体 this.var.getchildAt("想要拿到的子物体下标int类型")//根据下标获取对应子物体 2018-04-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

27. laya.d3.core.Camera_API3.0 [ 70%]

...ideFlags id is3D layer maxlocalYDistance msaa nearPlane normalizedViewport numChildren opaquePass orthographic orthographicVerticalSize parent postProcess projectionMatrix projectionViewMatrix renderTarget renderingOrder scene skyRenderer timer transform url viewMatrix viewport _updateMark Methods _...

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

28. laya.d3.webxr.core.WebXRCamera_API3.0 [ 69%]

...ideFlags id is3D layer maxlocalYDistance msaa nearPlane normalizedViewport numChildren opaquePass orthographic orthographicVerticalSize parent postProcess projectionMatrix projectionViewMatrix renderingOrder scene skyRenderer timer transform url viewMatrix viewport _updateMark Methods _applyCommandB...

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

29. laya.ui.Panel [ 67%]

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

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

30. laya.ui.Panel [ 67%]

...系上的 Y 轴坐标信息。 Sprite name : String节点名称。Node  numChildren : int[override] [read-only] 子对象数量。 Panel optimizeScrollRect : Boolean 指定是否对使用了 scrollRect 的显示对象进行优化处理。默认为false(不优化)。 当值为ture时:将对此...

来源: laya_api 发布时间: 20170929