大约有 344 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0110 秒)
...: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
...每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 onLateUpdate 每帧更新时执行,在onUpdate之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 onPreRender 渲染之前执行 onPostRender 渲染之后执行 onDisable ...
来源: Laya3.0_文档 发布时间: 20251010
...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
...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
...位置,但动画首次播放不对位置不对 : this.关联绑定2.getComponent(Laya.Animator).play("Animation",0,0.14); this.关联绑定2.getComponent(Laya.Animator).speed = 1; 附件中 两张,分别为第一次运行项目动画的开始位置,另一张为刷新页面运行项目动...
来源: Laya_社区 发布时间: 20250714
...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
...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
...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
...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
...件并赋值给 characterController this.characterController = this.owner.getComponent(Laya.CharacterController); //设置出生点位置 this.characterController.position = new Laya.Vector3(0, 0, 0); } } 4.2 角色移动 move() 角色移动用于通过指定移动向量来移动角色。 在代码...
来源: Laya3.0_文档 发布时间: 20251010