大约有 324 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
...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
...在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 此方法为虚方法,使用时重写覆盖即可 Script onMouseDown(e:Event):void 鼠标按下时执行 此方法为虚方法,使用时重写覆盖即可 Script onMouseMove(e:Event):void 鼠标...
来源: Laya2.0_api 发布时间: 20190513
...件并赋值给 characterController this.characterController = this.owner.getComponent(Laya.CharacterController); //设置出生点位置 this.characterController.position = new Laya.Vector3(0, 0, 0); } } 4.2 角色移动 move() 角色移动用于通过指定移动向量来移动角色。 在代码...
来源: 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 removeSelf rep...
来源: Laya3.0_api 发布时间: 20231115
...此方法只执行一次 onAwake(): void { this.light1Render = this.light1.getComponent(Laya.FreeformLight2D); this.mesh1Render = this.mesh1.getComponent(Laya.Mesh2DRender); this.mesh2Render = this.mesh2.getComponent(Laya.Mesh2DRender); //设置mesh1位于0层(Default层) this.mesh1Render.layer ...
来源: 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 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
...ode):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node hasListener(type:String):Boolean 检查 EventDispatcher 对...
来源: Laya2.0_api 发布时间: 20190513
...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