大约有 128 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0046 秒)
...的方法 ui组件list数据源的疑问 Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 Animation 使用疑问 layaMaxUI里面永远只会生成一个TestSceneUI,其他自定义的scene不会导出 没有加载ls文件的情况下能否设置scene的颜色?还是只...
来源: Laya_社区 发布时间: 20181025
...an not find scene:GameView.scene undefined Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 没有加载ls文件的情况下能否设置scene的颜色?还是只能黑色? Laya的Scene和View什么区别? laya2.0 GameConfig怎么更新有scene的脚本? layaMaxUI...
来源: Laya_社区 发布时间: 20200113
...录是存在哪儿,如何管理编辑? Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 在编辑器里面运行是没有问题的,但是发布打包之后存在资源加载不了 需要用SoundChannel的play()方法,报错说不存在play()方法? IDE提示...
来源: Laya_社区 发布时间: 20190315
...operty } = Laya; @regClass() export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /**加载并显示图...
来源: Laya3.0_文档 发布时间: 20240910
...件机制。 在LayaAir3.0中,Component具有完整的生命周期,即onAwake,onStart,onEnable,onUpdate,onLateUpdate,onDisable,onDestroy,不再使用_onEnable,_onDisable等下划线函数。 _onEnable,_onDisable等下换线函数仍然给内部使用 对比Component, Script增加了交互行...
来源: Laya3.0_文档 发布时间: 20250310
...过的UI组件,直接使用this.即可使用。例如下面的代码: onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) U...
来源: Laya3.0_文档 发布时间: 20250310
...------- | ------------------------------------------------------------ | | onAwake | 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只会执行一次 | | onEnable | 组件被启用后执行,比如,节点被添加到舞台后执行 | | onStart | 在第1次执...
来源: Laya2.0_文档 发布时间: 20210715
... } from "./Main"; @regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Mai...
来源: Laya3.0_文档 发布时间: 20250310
...orOf loadImage localToGlobal off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex set...
来源: Laya3.0_api 发布时间: 20231102
...orOf loadImage localToGlobal off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex set...
来源: Laya3.0_api 发布时间: 20231102