大约有 288 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0036 秒)
...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_文档 发布时间: 20241014
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
...xx.scene) 这是我打开xxx.scene 代码执行顺序是 构造器函数-onAwake-onEnable 然后我关闭 Laya.Scene.close(xxx.scene) 再次打开它Laya.Scene.open(xxx.scene) 代码执行顺序仍然是 构造器函数-onAwake-onEnable 也就是说 每次open这个UI 都会重新NEW 也...
来源: Laya_社区 发布时间: 20190104
... 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 Component(): Component Defined in laya/components/Component.ts:44 创建一个新的 Component ...
来源: Laya3.0_api 发布时间: 20231115