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

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

431. ios下没有办法强制全屏,横屏,地址栏仍然存在 [ 48%]

...tage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.bgColor = "#C0C0C0"; index.html和myLaya.max.html里增加如下: <meta name='full-screen' content='true' /> <meta name='screen-orientation' content='lands...

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

432. 开放数据域组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 48%]

...r: { width: 400, height: 200, backgroundColor: "#ffffff", justifyContent: "center", alignItems: "center", }, testText: { color: "#ffffff", width: "100%", height: "100%", lineHeight: 200, fontSize: 40, textAlign: "center", }, // 文字的最终颜色为#ff0000 redText: { color: "#ff0000", }, }; // JS...

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

433. 报告bug: graphics.drawCircle在layaair调试时,改变外框尺寸,半径未能自适应调整 [ 48%]

...aya.WebGL); //stage水平对齐方式 Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; //stage竖直对齐方式 Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; //设置适配模式 Laya.stage.scaleMode = "showall"; //添加Sprite var sp = new Laya.Sprite(); Laya.stage.addChild(sp); //将sp移动到横坐...

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

434. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 48%]

...  Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER;   Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628";   setup(); })();   function setup() { var list = new List();   list.itemRender = Item;   list.repeatX = 1; list.repeatY = 4;   list.x...

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

435. 性能测试-虫子(慎入) [ 48%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); wrapBounds = new Rectangle(-padding, -padding, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.loa...

来源: Laya2.0_示例 发布时间: 20260303

436. HTTP通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 48%]

...e = 25; this.text.width = 800; this.text.anchorX = 0.5; this.text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 this.hr = new HttpRequest(); //请求响应的进度改...

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

437. 分享:销毁龙骨动画! [ 48%]

...0"); button.graphics.fillText(label, w / 2 , 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } private function parseComplete(fac:Templet):void { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(0); mArmature.x = 400; mArmature.y = 500; m...

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

438. viewport 的用法 [ 48%]

...iteLaya.init(640, 1136,WebGL);         Laya.stage.alignH = Stage.ALIGN_CENTER;         Laya.stage.alignV = Stage.ALIGN_MIDDLE;         Laya.stage.scaleMode = "fixedwidth";         Laya.stage.bgColor = "12333";                 function layaSlot(info){             layaSlo...

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

439. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 48%]

...50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; }  //private musicString:string = "./sounds/心跳的证明.mp3"; private musicString:string = "./res/心跳的证明.mp3"; private soundString:string = "./sounds/hit.wav...

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

440. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 48%]

... = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "#101825"; this.init() } init() { // 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLo...

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