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

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

521. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 48%]

...tage; var loader = Laya.loader; stage.bgColor = "#00ffff"; stage.alignH = "center"; stage.alignW = "middle"; stage.scaleMode = "showall"; loader.load("../../res/guide/crazy_snowball.png", Handler.create(this, init)); function init(e) { var width = stage.width; var height = stage.height; var bg = new...

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

522. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 48%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; assets = ["../../res/ui/dialog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })();...

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

523. 在微信小游戏中使用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

524. 报告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

525. HTTP通信 · LayaAir3.3 · 引擎文档 · 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

526. 性能测试-虫子(慎入) [ 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_示例 发布时间: 20251209

527. 分享:销毁龙骨动画! [ 47%]

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

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

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

529. viewport 的用法 [ 47%]

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

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

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