大约有 378 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0143 秒)
Laya_社区(103) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya2.0_文档(34) Laya_示例(12) Laya3.0_文档(8) Laya2.0_示例(1)
...出的.lh中,components全是空的。导致 var zombieAnimator = plane.getChildAt(0).getComponentByType(Laya.Animator); zombieAnimator.play("Idle"); 播放动画时,zombieAnimator 是null 附件 : --> 2018-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180508
...一次某函数(基于帧率)。功能同Laya.timer.frameOnce()。 Node getChildAt(index:int):Node 根据子节点的索引位置,获取子节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子...
来源: laya_api 发布时间: 20170929
...i++) { tHTMLElement = div.getChildAt(i) as HTMLElement; if(tHTMLElement) { tTxt= tHTMLElement.text; if(tTxt) ...
来源: Laya_社区 发布时间: 20170314
...(this,function(sp){ //获取到Meshsprite3d var cube = scene.addChild(sp.getChildAt(0); //获取刚体 var cubeRigid = cube.getComponent(Laya.Rigidbody3D); })); ```
来源: Laya2.0_文档 发布时间: 20210715
...对象,我感觉你应该是想获取第二个,这样的话你应该用getChildAt方法比较好 2020-11-26 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 程程 相关问题 缓动Tween能用在3D物体或者特效上面吗? 纹...
来源: Laya_社区 发布时间: 20201126
...ater clearTimer contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeC...
来源: Laya3.0_api 发布时间: 20231115
...//获取角色动画组件 var ani:Animator=shared.getChildAt(0).getComponentByType(Animator) as Animator; //监听默认动画完成后播放站立动画 shared.on(Event.COMPLETE,this,onAniComplete,[ani]); ...
来源: Laya_社区 发布时间: 20180118
...reate(this, function(sp) { //获取蒙皮网格精灵 var skinnedmesh = sp.getChildAt(0).getChildAt(0); //对预设的网格上锁 skinnedmesh.meshFilter.sharedMesh.lock = true; //对预设所有的材质上锁 for (var i:int = 0; i < skinnedmesh.skinnedMeshRenderer.sharedMaterials.length;i++ ){ ski...
来源: Laya2.0_文档 发布时间: 20210715
...anslate(new Laya.Vector3(0,0,0),false); warehouseMeshSprite3D1= warehouse1.getChildAt(0).getChildByName("Mesh1"); var shareMaterial = warehouseMeshSprite3D1.meshRender.shareMaterial; shareMaterial.albedo = new Laya.Vector4(1,0,0,1);这样子不报错也没任何变化, 大佬帮忙看一下啊感...
来源: Laya_社区 发布时间: 20171225
...= new Laya.Vector3(8, 8, 8); this.layaMonkeyMeshSprite3D = this.layaMonkey.getChildAt(0).getChildByName("LayaMonkey"); //添加盒型碰撞器 var boxCollider = this.layaMonkeyMeshSprite3D.addComponent(Laya.BoxCollider); boxCollider.setFromBoundBox(this.layaMonkeyMeshSprite3D.meshFilter.sharedMesh.b...
来源: Laya_示例 发布时间: 20251209