大约有 6 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0023 秒)
...-7.png"; private clipSkin: string = "resources/res/ui/num0-9.png"; private bgSkin: string = "resources/res/ui/coutDown.png"; counter: any; controller: any; currFrame: any; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loa...
来源: Laya3.0_文档 发布时间: 20251010
...inLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); var bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); var button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - this...
来源: Laya3.0_文档 发布时间: 20230303
...inLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); let bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); let button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - this...
来源: Laya3.0_文档 发布时间: 20251024
...Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load(this.backgroundTexture).then(() => { this.createLightOccluder(); this.createSpotLight(); this.createBackground();...
来源: Laya3.0_文档 发布时间: 20251010
...含子目录)的所有文件,例如abc/**/* 排除具体文件,例如bg2.png 如图5-1所示。 (图5-1) 6、版本管理 6.1 开启版本管理 enableVersion 启用版本管理后,除引擎自带的入口文件外,其余未被忽略的文件名称都会附加一个由指定算法和...
来源: Laya3.0_文档 发布时间: 20251023
...ge; Laya.stage.addChild(img); img.pos(500, 100); img.skin = "resources/img_bg.png"; //图集中的图片 })); } onStart() { Laya.Stat.show(0, 0); } } 通过示例代码,我们可以看到,图集的纹理压缩的代码使用是无感的,和普通的图集使用方式完全相同。 四、优...
来源: Laya3.0_文档 发布时间: 20251010