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

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

691. 垂直滑动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 43%]

...", "vslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeVSlider)); } private placeVSlider(): void { let vs: Laya.Slider = new Laya.VSlider(); vs.skin = "vslider.png"; vs.height = 300; vs.pos(400, 50); vs.min = 0; vs.max = 100;...

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

692. 分享一个Shader版的CoolDown实现 [ 43%]

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

693. 水平滑动条组件 · LayaAir3.4 · 引擎文档 · 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_文档 发布时间: 20251010

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

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

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

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

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

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

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

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

699. 模型与动画的导入使用 · LayaAir3.4 · 引擎文档 · 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_文档 发布时间: 20251010

700. [LayaAirIDE3]2d相机打包后问题 [ 42%]

...载建筑图片     private loadBuildingImage(): void {         Laya.loader.load(             "res/building.png", // 你的建筑图片路径             Laya.Handler.create(this, () => {                 // 加载完成后绘制到building Sprite上               ...

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