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

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

21. 关于Sprite回收 [ 83%]

...       console.log(this.numChildren);             var item = this.getChildAt(i);             if(item instanceof Item) {                 item.removeSelf();                 item.visible = true;                 Pool.recover("item", item);                 i...

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

22. discard property,please use transform's property instead [ 83%]

...plane.lh"));             //地面接收阴影             grid.getChildAt(0).meshRender.receiveShadow = true;             var layaMonkey = scene.addChild(Laya.Sprite3D.load("res/LayaMonkey.lh"));             //产生阴影             layaMonkey.getChildAt(0).getChildAt...

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

23. 播放动画(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 80%]

...以下代码。 ```typescript //获取角色动画组件 var ani= role3D.getChildAt(0).getComponent(Laya.Animator); ``` 打开.lh文件查看,动画组件绑定在模型的子对象上,因此使用了 `getChildAt(0)`,通过它获取子对象模型。然后通过 `getComponent(Laya.Animator)` ...

来源: Laya2.0_文档 发布时间: 20210715

24. 播放动画(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 80%]

...以下代码。 ```typescript //获取角色动画组件 var ani= role3D.getChildAt(0).getComponent(Laya.Animator); ``` 打开.lh文件查看,动画组件绑定在模型的子对象上,因此使用了 `getChildAt(0)`,通过它获取子对象模型。然后通过 `getComponent(Laya.Animator)` ...

来源: Laya2.0_文档 发布时间: 20210715

25. 播放动画(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 80%]

...码。 ```typescript //获取角色动画组件 var ani:Animator= role3D.getChildAt(0).getComponent(Animator) as Animator; ``` 打开.lh文件查看,动画组件绑定在模型的子对象上,因此使用了 `getChildAt(0)`,通过它获取子对象模型。然后通过 `getComponent(Animator)`...

来源: Laya2.0_文档 发布时间: 20210715

26. 获取lh动画控制失败【已解决】 [ 79%]

...                  var zombieAnimator:Animator =layaMonkey.getChildAt(0).getComponentByType(Animator) as Animator;                              zombieAnimator.clip.islooping = true;                      zombieAnimator.stop();   错误...

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

27. albedoColor,是会把所有用到这个材质的反照率颜色都改变吗? [ 76%]

...架的时候,我获取点击的子节点改变反照率颜色 this.owner.getChildAt(0).meshRenderer.sharedMaterial.albedoColor = new Laya.Vector4(0.0, 1.0, 0.0, 1.0); 然后,所有架子的这个子节点都改变了.   附件 : --> 2019-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

28. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 76%]

....lh",Laya.Handler.create(this,(sp:Laya.Sprite3D)=> { this.car = sp.getChildAt(0).getChildAt(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D) })); 源 • 2019-01-11 20:47 @叶子:不算。这样只是给了刚体一...

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

29. 物体的x,y输出不一致的问题 [ 75%]

...Player中输出的位置信息不一致: var player :Player = Laya.stage.getChildAt(i) as Player; console.log(player.x); 附:在Player中输出x的信息 一直为0 但是在Monster类中输出Player的x的数据一直是497,0,494,0,4910,488,0.......这样的 2018-08-28 添加评...

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

30. 灯光-聚光 [ 75%]

...a.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 115, 150); }); var _quaternion = new Laya.Quaternion(); var _position = new Laya.Vector3(); Laya.timer.frameLoop(1, null, f...

来源: Laya_示例 发布时间: 20251209