大约有 735 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)
Laya_社区(530) Laya2.0_文档(76) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(21) Laya3.0_api(19) laya_api(1) Laya2.0_api(1)
...", "hslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeHSlider)); } private placeHSlider(): void { let hs: Laya.Slider = new Laya.HSlider(); hs.skin = "hslider.png"; hs.width = 300; hs.pos(50, 500); hs.min = 0; hs.max = 100; ...
来源: Laya3.0_文档 发布时间: 20230920
...; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage...
来源: Laya2.0_文档 发布时间: 20210715
...g/btn_test.png"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.wid...
来源: Laya2.0_文档 发布时间: 20210714
...渲染效果 alpha遮罩 用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); -----...
来源: Laya_社区 发布时间: 20170606
...lor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = new Laya.Button(this.skin); //将Button添加到舞台上 Laya.stage.addChild(btn); /...
来源: Laya2.0_文档 发布时间: 20210714
...tage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin], Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createContro...
来源: Laya2.0_文档 发布时间: 20210714
...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建水平滚动条 this.createHScroller(); } /***创建水平滚动条***...
来源: Laya2.0_文档 发布时间: 20210715
...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建垂直滚动条 this.createVScroller(); } /***创建水平滚动条***...
来源: Laya2.0_文档 发布时间: 20210715
...rt"); //加载指定的模型预制体,并添加到Scene3D场景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Eve...
来源: Laya3.0_文档 发布时间: 20230303
...lor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin, Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个Button实例 var btn:Button = new Button(skin); //将Button添加到舞台 Laya.stage.addChild(btn); //设置Button相关...
来源: Laya2.0_文档 发布时间: 20210715