大约有 201 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya3.0_api(79) Laya_社区(67) Laya2.0_文档(17) Laya2.0_api(15) laya_api(14) Laya3.0_文档(5) Laya_示例(4)
...出时会在角色外包裹一层sprite3D) this.roleModel = this.owner.getChildByName("girl1") as Laya.Sprite3D; //模型缩放 this.roleModel.transform.localScale = new Laya.Vector3(0.8,0.8,0.8); //获取角色动画组件 this.roleAni = this.roleModel.getComponentByType(Laya.Animator) as Laya.An...
来源: Laya_社区 发布时间: 20171113
...lone 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 removeChil...
来源: Laya3.0_api 发布时间: 20231115
...:int):Node 根据子节点的索引位置,获取子节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例...
来源: Laya2.0_api 发布时间: 20190513
...:int):Node 根据子节点的索引位置,获取子节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例...
来源: Laya2.0_api 发布时间: 20190513
...sition); resetPosition(): void { var aniMonkey: Laya.Sprite3D = scene.getChildByName("monkey") as Laya.Sprite3D; aniMonkey.transform.position = new Laya.Vector3(math,math,math); } Laya.Tween.to(aniMonkey.transform.position, { x: math1, y: aniMonkey.transform.position.y, z: aniMonkey.transf...
来源: Laya_社区 发布时间: 20180117
...中的角色移动碰撞区模型 var moveArea = this.scene.getChildAt(0).getChildByName("MoveArea"); //设置为不渲染 moveArea.meshRender.enable = false; //加载网格碰撞器组件 var sprite3d1MeshCollider=moveArea.addComponent(Laya.MeshCollider); //官方js例子里少了下面这行 sprit...
来源: Laya_社区 发布时间: 20180118
...:int):Node 根据子节点的索引位置,获取子节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例...
来源: Laya2.0_api 发布时间: 20190513
...位置获取不正确 laya3D动画无法播放 3D模型tween旋转 使用getChildByName()无法得到子节点对象 3D模型无法修改scale? dialog 自定义关闭效果,效果执行完,弹窗无法关闭 发布到vivo平台后,龙骨动画无法显示 问题状态 最新活动: 2019-01...
来源: Laya_社区 发布时间: 20180423
...: 609 关注: 2 人 188*****423 • 2019-05-24 11:07 一层一层怎么拿 getChildByName 拿不到 断点看_children只有一个值 是不是我这边导出 出了问题 Laya_Aaron • 2019-05-24 15:58 @188*****423:有可能,你需要去看那个lh文件里面的结构 188*****423 • 2019-05-24...
来源: Laya_社区 发布时间: 20190523
...ional/scene.ls")) as Scene3D; //从场景获取球型精灵 sphere = scene.getChildByName("Sphere") as MeshSprite3D; //获取球型精灵自带的BlinnPhong材质 billinMaterial = sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或者将这个材质给其他模型使...
来源: Laya2.0_文档 发布时间: 20210715