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

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

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

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

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

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

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

696. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · 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

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

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

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

698. 3D中如何限制角色的行走区域? [ 42%]

...tChildAt(13) as MeshSprite3D;               var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D;               //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D               var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3...

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

699. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 41%]

...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab...

来源: Laya2.0_文档 发布时间: 20210714

700. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 41%]

...ript //初始化引擎 Laya.init(100,100); var skins = ["res/a.png"]; Laya.loader.load(skins,Laya.Handler.create(this,onUIAssetsLoaded)); function onUIAssetsLoaded(){ var btn = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一...

来源: Laya2.0_文档 发布时间: 20210714