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

大约有 287 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0035 秒)

1. 定时器 · LayaAir3.0文档 · LAYABOX [ 100%]

...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_文档 发布时间: 20230724

2. Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 [ 98%]

Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 官方源码如下: /**     *@private     */     __proto._activeHierarchy=function(activeChangeScripts){         this._setBit(/*laya.Const.ACTIVE_INHIERARCHY*/0x02,true);         if (this._...

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

3. laya.d3.component.Script3D [ 96%]

...nAdded():void[override] Script3D destroy():void 销毁组件 Component  onAwake():void 创建后只执行一次 此方法为虚方法,使用时重写覆盖即可 Script3D  onCollisionEnter(collision:Collision):void 开始碰撞时执行 此方法为虚方法,使用时重写覆盖即可 Scri...

来源: Laya2.0_api 发布时间: 20190513

4. laya.components.Script [ 96%]

...cript():Boolean[override] Script destroy():void 销毁组件 Component  onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Script  onClick(e:Event):void 鼠标点击时执行 此...

来源: Laya2.0_api 发布时间: 20190513

5. laya.components.CommonScript_API3.0 [ 94%]

...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

6. laya.physics.joint.JointBase_API3.0 [ 94%]

...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

7. laya.d3.core.MeshFilter_API3.0 [ 93%]

...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

8. 2.0UI的生命周期感觉有问题 [ 93%]

...xx.scene)  这是我打开xxx.scene 代码执行顺序是 构造器函数-onAwake-onEnable   然后我关闭 Laya.Scene.close(xxx.scene) 再次打开它Laya.Scene.open(xxx.scene) 代码执行顺序仍然是 构造器函数-onAwake-onEnable    也就是说 每次open这个UI 都会重新NEW 也...

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

9. laya.d3.component.LODGroup_API3.0 [ 93%]

... 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

10. laya.components.Component_API3.0 [ 93%]

...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