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

大约有 37 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0043 秒)

21. 如何通过代码控制prefab上面的时间轴动画animation? [ 65%]

... callback.run(); }); } ... // 外部访问 ... let puzzleSoldier = soldier.getComponent(PuzzleSoldier) as PuzzleSoldier; puzzleSoldier.attack(); ... 2019-02-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 138*...

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

22. [LayaAir3]spine显示不对 [ 64%]

...load("swk/zhujue_wk.skel", Laya.Handler.create(this, () => { this.owner.getComponent(Laya.Spine2DRenderNode).changeNormal(); })); }   2024-10-10 0 1 分享 微博 QZONE 微信 layabox 赞同来自: 已记录,我们节后看一下 2024-09-30 0 0 分享 微博 QZONE 微信 jokerseed 赞同来自...

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

23. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 62%]

...te3D(pBull, "bull"); let pBullRigidBody = <Laya.Rigidbody3D>pBullObj.getComponent(Laya.Rigidbody3D) pBullRigidBody.isKinematic = true; let pEnemyObj = Util3d.getSprite3D(pEnemy, "man_1"); let pEnemyRigidBody = <Laya.Rigidbody3D>pEnemyObj.getComponent(Laya.Rigidbody3D) pEnemyRigidBody.isK...

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

24. 动画混合问题,Avatar动画混合报错. [ 62%]

...(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); }  public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.tran...

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

25. [LayaAir3]3D寻路导航组件显示隐藏后导航失效问题 [ 62%]

...后导航失效问题                   let suface = this.owner.getComponent(NavMeshSurface)   suface.enabled = false;             suface.enabled = true; 附件 : --> 3D寻路导航.zip 2024-10-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

26. 2.0组件式开发Script间互相调用、通信的官方推荐方式是什么呢 [ 61%]

...么处理呢? 1、Script2做成static instance?   2、findeNode(Node2).getComponent(Script2).doSomeThing()? 类似这样吗,Script中有findNode类似的api吗? 2020-03-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

27. 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 [ 60%]

... /**获取动画 */ public getAni(): void { this.ani = this.owner.sprite3d.getComponent(Laya.Animator); let all = 486; let arr = ["3,21,run,true", "29,59,wolk,true", "70,120,cheer,true", "125,380,dance,true", "393,440,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; console....

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

28. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 58%]

...的breakForce ```typescript onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.conn...

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

29. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 58%]

...的breakForce ```typescript onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.conn...

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

30. rigidBody.applyForce 物体不会移动 [ 58%]

...is.character = littleGirl; //獲取動畫組建 this.animator = littleGirl.getComponent(Laya.Animator) as Laya.Animator; this.playIdle(); this.rigidBody = this.character.getComponent(Laya.Rigidbody3D); Laya.timer.frameLoop(1, this, this.onKeyDown); //獲取照相機 var camera: Laya.Camera = littleG...

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