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

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

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

...成功后,执行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.width = 100; btn.height = 50; btn....

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

882. 微信小游戏中iPhoneX的适配问题 [ 43%]

...awTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); kezhiyu • 2018-06-04 1...

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

883. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 43%]

...Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler.create(null, function(sp)             {                 var layaMonkey2  = scene.addChild(sp);                 layaMonkey2.transform.localScale = new Laya.Vector3(4, 4, 4);                 layaM...

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

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

...源来自“引擎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; vs.value = 50; vs.tick = 1; vs.c...

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

885. 水平滑动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 43%]

...源来自“引擎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; hs.value = 50; hs.tick = 1; hs.ch...

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

886. 微信小游戏资源总是加载旧的资源 [ 43%]

...         {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(...   并且在这之前已经加载并设置了版本文件 URL.version=Laya.loader.getRes("resVersion.json");   我们游戏已经在微信小游戏之外的平台上线了的,以前热更新都没问题,最近...

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

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

...后,执行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); //设置Button相关属性 btn.width =...

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

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

...ya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin], Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } private showBg(): void { var bg: Image = new Image(this.bgSkin...

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

889. 图片遮罩大小跟设置不一致 [ 43%]

...exture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(20...

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

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

...e.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建水平滚动条 this.createHScroller(); } /***创建水平滚动条***/ private createHScroller():void...

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