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

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

1. destroy节点后,报错 [ 100%]

...舞台移除模型对象 @param node 节点 */ base_remove(node){ if(node.numChildren<=0)return; console.log('移除',node.name); let obj; for(let i=node.numChildren-1;i>=0;i--){ obj= node.getChildAt(i); obj.destroy(); } }   或者 /* 从舞台移除模型对象 @param node 节点 */ base_rem...

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

2. Node.prototype.removeChildren移除计数有问题 [ 88%]

...一个之外的子节点,那么那么按理是调用p.removeChildren(0,p.numChildren-2);结果界面会剩两个子节点; 那么改成p.removeChildren(0,p.numChildren-1);结果子节点全部移除了。。 附件 : --> 2020-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

3. 节点管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 86%]

...时,可以用个此方法可获取子节点 获取子节点对象数量numChildren 通过调用父节点的numChildren属性,可以获得父节点下一级的所有子节点的数量,可用来遍历所有子节点使用,注意不包括子节点下的子节点 获取父节点对象parent 通...

来源: Laya3.0_文档 发布时间: 20251010

4. laya.d3.core.Sprite3D_API3.0 [ 81%]

...eInHierarchy components destroyed displayedInStage hideFlags id is3D layer numChildren parent scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event f...

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

5. laya.display.Node [ 80%]

...否在显示列表中显示。Node  name : String节点名称。Node  numChildren : int[read-only] 子对象数量。 Node  parent : Node父节点。Node  timer : Timer时间控制器,默认为Laya.timer。NodePublic Methods Hide Inherited Public Methods Show Inherited Public Methods Meth...

来源: laya_api 发布时间: 20170929

6. laya.display.Node_API3.0 [ 80%]

...ive activeInHierarchy components destroyed displayedInStage hideFlags is3D numChildren parent scene timer url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains destroy destroyChildren event frameLoop frameOn...

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

7. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 79%]

...ts destroyed displayedInStage hideFlags id importance intensity is3D layer numChildren parent probePosition reflectionTexture scene timer transform url Methods _getIndexInReflectionList _initialize _processActive _setIndexInReflectionList addChild addChildAt addChildren addComponent addComponentInst...

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

8. laya.d3.core.light.LightSprite_API3.0 [ 78%]

... hideFlags id intensity is3D layer lightWorldMatrix lightmapBakedType mode numChildren parent scene shadowDepthBias shadowDistance shadowMode shadowNearPlane shadowNormalBias shadowResolution shadowStrength timer transform url Methods _initialize _processActive addChild addChildAt addChildren addCom...

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

9. laya.d3.core.light.PointLight_API3.0 [ 77%]

... hideFlags id intensity is3D layer lightWorldMatrix lightmapBakedType mode numChildren parent range scene shadowDepthBias shadowDistance shadowMode shadowNearPlane shadowNormalBias shadowResolution shadowStrength timer transform url Methods _initialize _processActive addChild addChildAt addChildren ...

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

10. laya.d3.core.BaseCamera_API3.0 [ 77%]

...e farPlane fieldOfView hideFlags id is3D layer maxlocalYDistance nearPlane numChildren orthographic orthographicVerticalSize parent renderingOrder scene skyRenderer timer transform url Methods _initialize _processActive addAllLayers addChild addChildAt addChildren addComponent addComponentInstance a...

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