大约有 693 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0051 秒)
Laya_社区(374) Laya_示例(132) Laya2.0_示例(116) Laya2.0_文档(65) Laya3.0_api(2) Laya3.0_文档(2) laya_api(1) Laya2.0_api(1)
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var w = 400; var offset = Laya.stage.width - w >> 1; var endY = Laya.stage.height / 2 - 50; var demoString = "LayaBox"; for (v...
来源: Laya_示例 发布时间: 20241118
...LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Lay...
来源: Laya_示例 发布时间: 20241118
...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() { const Text = Laya.Text, Tween = Laya.Tween, Ease = Laya.Ease; let w = 400; let offset = Laya.stage.width - w >> 1; let en...
来源: Laya2.0_示例 发布时间: 20241118
...化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; // 关于透传接口,请参考: https://ldc2.layabox.com/doc/?n...
来源: Laya_社区 发布时间: 20200314
..._MIDDLE; Laya.Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBox(); this.eventListener(); } createBox() { const width = 300, height = 20; const posx = Laya.Browser.width / 2, posy = Laya.Browser.he...
来源: Laya2.0_示例 发布时间: 20241118
...MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Stat.show(0,0); Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.stage.scaleX = Laya.stage.scaleY = 1.5; Laya.stage.scaleX = Laya.stage.scaleY = 1; 舞台缩小。拖动窗口使其进行自适应会提示异常 2017-04-07 添...
来源: Laya_社区 发布时间: 20170407
...(isDesH != isDivH) { var d = divH; divH = divW; divW = d; } if (Laya.stage.scaleMode != "noscale") { scaleY = divH / desH; scaleX = divW / desW; switch (Laya.stage.scaleMode) { case "noborder": if (scaleX > scaleY) { scaleY = scaleX; } else { scaleX = scaleY; } break; case "showall": if (scaleX &...
来源: Laya_社区 发布时间: 20171205
... 具体代码如下: (function () { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var resUrl = "../bin/res/modles/role_48_lurenyi/role_48_lurenyi.lh"; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addC...
来源: Laya_社区 发布时间: 20180503
...LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/Arena/Arena.ls")); var camera = scene.addChild(new Laya.Camera(0, 0....
来源: Laya_示例 发布时间: 20241118
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; var res = [ "../../res/ui/vscroll.png", "../../res/ui/vscroll$bar.png", "../../res/ui/vscroll$down.png", "../../res/ui/vscroll$up.png", "../../res/ui/tree/clip_...
来源: Laya_示例 发布时间: 20241118