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

大约有 293 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)

1. 發布WEB後運行 到執行onAwake中間有段黑屏 [ 100%]

發布WEB後運行 到執行onAwake中間有段黑屏 因為有這個問題存在 想知道進度條要怎麼在黑屏這段期間執行 onAwake是最快執行的嗎? JS大小是36KB   分批加載資源有示例可以看? 謝謝 附件 : --> 2019-09-05 添加评论 免费帖 --> 分享 微博 QZO...

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

2. [LayaAir3]挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } 点击就报错 [ 96%]

[LayaAir3]挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } 点击就报错  挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown);} 点击就报错 附件 : --> 2023-12-20 添加评论 ...

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

3. [LayaAirIDE3]应该如何定义@property才能像GTextField一样加载字体? [ 91%]

...以设置场景路径     }) }   场景中加载字体代码:     onAwake(): void {         let fnt = Laya.loader.getRes("resources/BitmapFont.fnt", Laya.Loader.FONT);         console.log(fnt);     } 2025-09-17 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

4. 运行时网页黑屏,报错提示 [ 91%]

...修改的地方如下: 1、bestScore未定义的报错,StartPanel.js的onAwake方法内,var bexScore声明未使用,bestScore使用未声明,将bexScore修改为bestScore。 2、destoroy未定义的报错,GameManager.js内的销毁方法wall.destoroy与wallCurve.destoroy方法拼写错...

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

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

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

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

6. laya.components.CommonScript_API3.0 [ 83%]

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

7. laya.physics.joint.JointBase_API3.0 [ 82%]

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

8. laya.d3.core.MeshFilter_API3.0 [ 82%]

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

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

... 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 [ 81%]

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