大约有 771 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0040 秒)
Laya_社区(450) Laya_示例(132) Laya2.0_示例(116) Laya2.0_文档(65) Laya3.0_api(3) laya_api(2) Laya2.0_api(2) Laya3.0_文档(1)
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createSprite(); })(); function createSprite() { sp = new Sprite(); sp.graphics.drawRect(0, 0, 200, 200, "#D2691E"); sp.pivot(100, 100); sp.x = Laya.stage.width / 2; sp.y ...
来源: Laya_示例 发布时间: 20251209
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createApes(); })(); function createApes() { var gap = 300; sp1 = new Sprite(); sp1.loadImage("../../res/apes/monkey2.png", 0, 0); sp1.pos((Laya.stage.width - gap) / 2, La...
来源: Laya_示例 发布时间: 20251209
...好 纠正一下,layaAir 1.1.0版本下没有sizeMode模式,只有scaleMode 我这边是使用Laya.stage.scaleMode="exactfit";进行测试的 as与ts项目下的显示结果一致,你可以具体描述下你的操作和问题重现方式,我们来继续测试,抑或把你有问题...
来源: Laya_社区 发布时间: 20160823
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { let vGap = 100; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height...
来源: Laya2.0_示例 发布时间: 20251209
...容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: Laya.stage.scaleMode = Stage.SCALE_FIXED_WIDTH 这样试试 还有其他适配方式也试一下 2018-06-26 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发...
来源: Laya_社区 发布时间: 20180626
...ion() { Laya.init(picW, Browser.height * picW / Browser.width); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; showShakePic(); showConsoleText(); startShake(); })(); function showShakePic() { var shakePic = new Sprite(); shakePic.loadImage("../../res/inputDevice/shake.png"); Laya.stage.addChild(shakePi...
来源: Laya_示例 发布时间: 20251209
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createApes(); } createApes() { const Sprite = Laya.Sprite; let monkey2Path = "res/apes/monkey2.png"; this.ape1 = new Sprite(); this.ape2 = new Sprite(); th...
来源: Laya2.0_示例 发布时间: 20251209
...is.index = -1; Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } startFun() { this.templet = new SpineTemplet(Laya.SpineVersion.v3_8); this.templet.loadAni(this.aniPath); this.templet.on(Event....
来源: Laya2.0_示例 发布时间: 20251209
... GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode ="fixedwidth"; GameConfig.screenMode = "none"; GameConfig.alignV = "top"; GameConfig.alignH = "left"; GameConfig.startScene = "main.scene"; GameConfig.sceneRoot = ""; GameConfig.de...
来源: Laya_社区 发布时间: 20201110
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createTexts(); })(); function createTexts() { createLabel("只允许输入数字:").pos(50, 20); var input = createInput(); input.pos(50, 50); input.restrict ...
来源: Laya_示例 发布时间: 20251209