大约有 321 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
继承Scene没有onEnable 以下3个代码块 1.继承Node 执行后会有onAwake let t = new tt(); Laya.Scene.root.addChild(t); } } //激活启动类 new Main(); class tt extends Laya.Node{ constructor(){ super(); } ...
来源: Laya_社区 发布时间: 20190701
...rated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { //60帧后,图片的透明度变为0.5 Laya.timer.frameOnce(60, this, () => { this.Image.alpha = 0.5; }) } } 1.2 定时重复执行 (基于帧率) Laya.timer.frameLoop,定义如下: /** * 定时重...
来源: Laya3.0_文档 发布时间: 20251010
Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 官方源码如下: /** *@private */ __proto._activeHierarchy=function(activeChangeScripts){ this._setBit(/*laya.Const.ACTIVE_INHIERARCHY*/0x02,true); if (this._...
来源: Laya_社区 发布时间: 20190730
...nAdded():void[override] Script3D destroy():void 销毁组件 Component onAwake():void 创建后只执行一次 此方法为虚方法,使用时重写覆盖即可 Script3D onCollisionEnter(collision:Collision):void 开始碰撞时执行 此方法为虚方法,使用时重写覆盖即可 Scri...
来源: Laya2.0_api 发布时间: 20190513
...cript():Boolean[override] Script destroy():void 销毁组件 Component onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Script onClick(e:Event):void 鼠标点击时执行 此...
来源: Laya2.0_api 发布时间: 20190513
...s id isSingleton Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new CommonScript(): CommonScript Overrides Component.constructor Defined in laya/components/CommonSc...
来源: Laya3.0_api 发布时间: 20231102
...deFlags id joint Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new JointBase(): JointBase Overrides Component.constructor Defined in laya/physics/joint/JointBase.t...
来源: Laya3.0_api 发布时间: 20231115
...gs id sharedMesh Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new MeshFilter(): MeshFilter Overrides Component.constructor Defined in laya/d3/core/MeshFilter.ts:1...
来源: Laya3.0_api 发布时间: 20231115
... id lods nowRate Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDisable onEnable onLateUpdate onPostRender onReset onStart onUpdate Constructors constructor new LODGroup(): LODGroup Overrides Component.constructor Defined in laya/d3/component/LODGroup.ts:194 实例化一个LODGr...
来源: Laya3.0_api 发布时间: 20231115
...led hideFlags id Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new EffectBase(): EffectBase Inherited from Component.constructor Defined in laya/components/Compone...
来源: Laya3.0_api 发布时间: 20231115