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

大约有 735 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

681. 水平滑动条组件 · LayaAir3.0文档 · LAYABOX [ 43%]

...", "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

682. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 43%]

...; //加载图集资源,加载成功后将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

683. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 43%]

...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

684. 分享一个Shader版的CoolDown实现 [ 42%]

...渲染效果   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

685. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 42%]

...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

686. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 42%]

...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

687. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 42%]

...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

688. VScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 42%]

...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

689. 模型与动画的导入使用 · LayaAir3.0文档 · LAYABOX [ 42%]

...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

690. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 42%]

...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