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

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

21. 2.6物理问题 [ 74%]

...:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getChildByName("Ball") as Sprite3D; this.ball.addComponent(BallScript2)   BallScript2  onAwake   this.ball = this.owner as Sprite3D; thi...

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

22. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 onLateUpdate 每帧更新时执行,在onUpdate之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 onPreRender 渲染之前执行 onPostRender 渲染之后执行 onDisable ...

来源: Laya3.0_文档 发布时间: 20251010

23. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 73%]

...Children event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeInputChi...

来源: Laya3.0_api 发布时间: 20231102

24. laya.d3.core.light.LightSprite_API3.0 [ 72%]

...Children event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf rep...

来源: Laya3.0_api 发布时间: 20231115

25. [LayaAir3]3.2.7 版本 Animator的play 方法,定义了开始位置,但动画首次播放不对位置不对 [ 71%]

...位置,但动画首次播放不对位置不对 :   this.关联绑定2.getComponent(Laya.Animator).play("Animation",0,0.14); this.关联绑定2.getComponent(Laya.Animator).speed = 1;  附件中 两张,分别为第一次运行项目动画的开始位置,另一张为刷新页面运行项目动...

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

26. 下面这段unity碰撞代码如何用laya2.0物理引擎实现 [ 71%]

...pulseForce, impulseForce);     a.Normalize();     base.gameObject.GetComponent<Rigidbody2D>().AddForce(a * num, ForceMode2D.Impulse); }   private void AddPlayerForce(Collision2D collision, float playerStrong, float impulseForce) {     if (playerStrong == 0f || impu...

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

27. laya.d3.core.light.PointLight_API3.0 [ 71%]

...Children event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf rep...

来源: Laya3.0_api 发布时间: 20231115

28. laya.d3.core.BaseCamera_API3.0 [ 71%]

...Children event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeAllLayers removeChild removeChildAt removeChildByName removeChildre...

来源: Laya3.0_api 发布时间: 20231115

29. laya.d3.core.light.SpotLight_API3.0 [ 71%]

...Children event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf rep...

来源: Laya3.0_api 发布时间: 20231115

30. 角色控制器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...件并赋值给 characterController this.characterController = this.owner.getComponent(Laya.CharacterController); //设置出生点位置 this.characterController.position = new Laya.Vector3(0, 0, 0); } } 4.2 角色移动 move() 角色移动用于通过指定移动向量来移动角色。 在代码...

来源: Laya3.0_文档 发布时间: 20251010