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

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

11. laya.components.Component_API3.0 [ 90%]

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

12. laya.effect.FadeOut_API3.0 [ 89%]

...led hideFlags id Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new FadeOut(): FadeOut Inherited from Component.constructor Defined in laya/components/Component.ts:...

来源: Laya3.0_api 发布时间: 20231115

13. laya.effect.FadeIn_API3.0 [ 89%]

...led hideFlags id Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new FadeIn(): FadeIn Inherited from Component.constructor Defined in laya/components/Component.ts:44...

来源: Laya3.0_api 发布时间: 20231115

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

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

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

15. laya.physics.joint.GearJoint_API3.0 [ 89%]

...s id joint ratio Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new GearJoint(): GearJoint Inherited from JointBase.constructor Overrides Component.constructor Defi...

来源: Laya3.0_api 发布时间: 20231115

16. 脚本的事件(JavaScript-3D基础(JS)-LayaAir3D的脚本使用) [ 89%]

...anguage=ch&category=3d&group=Script&name=ScriptDemo))。该示例中对 `onAwake`,`onStart`,`onUpdate`,`onDisable` 进行了接管。在材质加载完成之后,给cube添加了脚本。并且在4秒后执行的移除脚本操作。 ```typescript /** * 创建后只执行,只会执行一次...

来源: Laya2.0_文档 发布时间: 20210714

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

...以设置场景路径     }) }   场景中加载字体代码:     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

18. 滤镜效果 · LayaAir3.3 · 引擎文档 · LAYABOX [ 88%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //创建一个颜色滤镜对象 let colorFilter: Laya.ColorFilter = new Laya.ColorFilter(); //给Image组件添加颜色滤镜 this.img.filters = [colorFilter]; //设置滤镜颜色 colorFilter.color(0.5, 0.5...

来源: Laya3.0_文档 发布时间: 20250826

19. laya.physics.joint.PulleyJoint_API3.0 [ 88%]

...deFlags id joint Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new PulleyJoint(): PulleyJoint Inherited from JointBase.constructor Overrides Component.constructor ...

来源: Laya3.0_api 发布时间: 20231115

20. laya.physics.joint.WeldJoint_API3.0 [ 88%]

...deFlags id joint Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new WeldJoint(): WeldJoint Inherited from JointBase.constructor Overrides Component.constructor Defi...

来源: Laya3.0_api 发布时间: 20231115