大约有 321 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0033 秒)
...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
...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
...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
...xx.scene) 这是我打开xxx.scene 代码执行顺序是 构造器函数-onAwake-onEnable 然后我关闭 Laya.Scene.close(xxx.scene) 再次打开它Laya.Scene.open(xxx.scene) 代码执行顺序仍然是 构造器函数-onAwake-onEnable 也就是说 每次open这个UI 都会重新NEW 也...
来源: Laya_社区 发布时间: 20190104
...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
...anguage=ch&category=3d&group=Script&name=ScriptDemo))。该示例中对 `onAwake`,`onStart`,`onUpdate`,`onDisable` 进行了接管。在材质加载完成之后,给cube添加了脚本。并且在4秒后执行的移除脚本操作。 ```typescript /** * 创建后只执行,只会执行一次...
来源: Laya2.0_文档 发布时间: 20210714
...以设置场景路径 }) } 场景中加载字体代码: 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
...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //创建一个颜色滤镜对象 let colorFilter: Laya.ColorFilter = new Laya.ColorFilter(); //给Image组件添加颜色滤镜 this.img.filters = [colorFilter]; //设置滤镜颜色 colorFilter.color(0.5, 0.5...
来源: Laya3.0_文档 发布时间: 20250826
...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
...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