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

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

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

...V = Laya.Stage.ALIGH_MIDDLE; Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; 然后掉微信的接口查System的信息判断是不是iPhone X 如果是的话在调用 Laya.stage.y = 150 强制调整stgae的y左边居中显示 xiao龙 • 2018-09-05 11:46 或者调整个适当的y值居中显...

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

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

...id { 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.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(hs); } private onChange(value: number): void { console.log("滑...

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

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

...加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } new GameMain(); ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Bu...

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

1814. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 42%]

...      tex.once(Event.READY, this, this.drawImage, [tex, x, y, width, height]);                 }   导致 tex 找不到 getIsReady 方法报错     报错堆栈 TypeError: tex.getIsReady is not a function at Graphics.loadImage (file:///D:/zxl/2.0_stable/lfGame2.0/bin/...

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

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

...his.hScrollBar.skin = "res/ui/hscroll.png"; //设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, 170); //最低滚动位置数字 this.hScrollBar.min = 0; //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = n...

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

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

...his.vScrollBar.skin = "res/ui/vscroll.png"; //设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, 170); //最低滚动位置数字 this.vScrollBar.min = 0; //最高滚动位置数字 this.vScrollBar.max = 100; //滚动变化事件回调 this.vScrollBar.changeHandler = n...

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

1817. laya打包iOS,运行奔溃,构建时候选择的是2.3.0 [ 42%]

...打包APP到真机上同样的问题。   Laya.init(GameConfig_1.default.width, GameConfig_1.default.height, Laya["WebGL"]); 加了一些alert,bundle.js 这里的Laya["WebGL"]已经是undefined了:   虽然在core.js中强制使用了webgl,if (!isWebGLEnabled)/*__JS__ */{laya.webgl.WebGL.e...

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

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

...加到舞台 Laya.stage.addChild(btn); //设置Button相关的属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } } ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](http...

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

1819. 重要问题:关于苹果审核被拒 [ 41%]

...lloworldlv • 2018-03-21 11:03 如果再报错在build phases/link binary width libraries里加上JavaScriptCore.framework riven • 2018-03-21 13:42 ok了,多谢 Monica • 2018-03-21 10:00 你用的是0.9.14版本的Native库吗? devilsome • 2018-03-21 10:14 是的,有什么特殊需要...

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

1820. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 41%]

... list.itemRender = Item; list.x = 15; list.y = 60; list.height = 470; list.width = 542; list.spaceY = 20; list.vScrollBarSkin = ""; list.repeatX = 1; list.repeatY = 10; list.selectEnable = false; list.renderHandler = new Handler(this, function(cell, index) { cell.setImg(cell.dataSource); }); this.ro...

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