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

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

211. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load(this.backgroundTexture).then(() => { this.createLightOccluder(); this.createSpotLight(); this.createBackground(); }); } // 创建2D光遮挡器 createLightOccluder(): void { this.lightOccluder.pos(233, 265); this...

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

212. laya.ui.Dialog_API3.0 [ 46%]

...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instance();//创建一个 Dialog_Instance 类的实例对象 dialog...

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

213. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

... "resources/res/ui/input (3).png", "resources/res/ui/input (4).png"]; Laya.loader.load(this.skins).then( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: Laya.TextInput = this.createInput(this.skins[i]); input...

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

214. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 44%]

...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...

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

215. 导航标签组组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(e: any = null): void { let tabA: Laya.Tab = this.createTab(this.skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#33...

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

216. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then(() => { let ComboBox: Laya.ComboBox = new Laya.ComboBox(this.skin, "item0,item1,item2,item3,item4,item5"); ComboBox.labelSize = 30; ComboBox.itemSize = 25 this.owner.addChild(ComboBox); ComboBox...

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

217. 复选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.load(this.skins).then(() => { this.onCheckBoxSkinLoaded(); }); } private onCheckBoxSkinLoaded(e: any = null): void { let cb: Laya.CheckBox; for (let i: number = 0; i < this.COL_AMOUNT; ++i) { for (let j: number =...

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

218. laya.ui.Button_API3.0 [ 43%]

...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","la...

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

219. laya.ui.CheckBox_API3.0 [ 43%]

...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var checkBox:CheckBox = new CheckBox("resource/ui/check.png"...

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

220. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin]).then( ()=>{ this.onSkinLoaded(); } ); } private onSkinLoaded(e: any = null): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.creat...

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