大约有 378 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0038 秒)
Laya_社区(103) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya2.0_文档(34) Laya_示例(12) Laya3.0_文档(8) Laya2.0_示例(1)
...这都需要从加载的模型中去获取子对象,我们可以通过 **getChildAt()、getChildByName()** 方法去获取子对象,这与2D引擎获取子对象方法一样。 下面我们来加载一个场景的.ls文件,然后获取它的子对象。在获取子对象之前,建议打开.l...
来源: Laya2.0_文档 发布时间: 20210715
...anslate(new Laya.Vector3(0,0,0),false); warehouseMeshSprite3D1= warehouse1.getChildAt(0).getChildByName("Mesh1"); var material = warehouseMeshSprite3D1.meshRender.material; material.albedo = new Laya.Vector4(1,0,0,1);换了一个模型就不行了,模型文件如下 会提示报错信息: Typ...
来源: Laya_社区 发布时间: 20171226
...mator动画组件 zombieAnimator = (role3D.getChildAt(0) as Sprite3D).getComponentByType(Animator) as Animator; zombieAnimator.clip.islooping = true; }); } res.rar...
来源: Laya_社区 发布时间: 20180116
...); effect3D.once( Event.LOADED , this,function(sprite){ var child=effect3D.getChildAt(0); } ); sfsmmc • 2017-08-21 15:53 我试过,在loader.create预加载资源完成后,通过 Laya.loader.getRes("LayaScene_effect/effect.lh") 是不会触发Event.LOADED的。但是有的模型却...
来源: Laya_社区 发布时间: 20170821
...ate(new Vector3(-20, 13, 0)); //获取动画组件 pangziAnimator = pangzi.getChildAt(0).getComponent(Animator) as Animator; //AnimationClip的加载要放在Avatar加载完成之后 AnimationClip.load("res/threeDimen/skinModel/BoneLinkScene/Assets/Model3D/PangZi-Take 001.lani", Handler.create(null,...
来源: Laya2.0_文档 发布时间: 20210715
...learTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents getLine hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt...
来源: Laya3.0_api 发布时间: 20231115
...的某个子节点 根据子节点的索引位置,获取子节点对象getChildAt(index:number) 当我们知道某个节点的索引位置时,可以用个此方法找到父节点下一级的某个子节点 根据子节点对象,获取子节点的索引位置getChildIndex(node:Node) 当我们...
来源: Laya3.0_文档 发布时间: 20251010
...这都需要从加载的模型中去获取子对象,我们可以通过 **getChildAt()、getChildByName()** 方法去获取子对象,这与2D引擎获取子对象方法一样。 下面我们来加载一个场景的.ls文件,然后获取它的子对象。在获取子对象之前,建议打开.l...
来源: Laya2.0_文档 发布时间: 20210714
...hild(Laya.Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.createSphere(0.1), new Laya.Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRend...
来源: Laya2.0_文档 发布时间: 20210715
...addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); (grid.getChildAt(0)).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.mes...
来源: Laya2.0_文档 发布时间: 20210715