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

大约有 696 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0043 秒)

291. 缓动-逐字缓动 [ 73%]

...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_示例 发布时间: 20241124

292. 高级应用-实时阴影 [ 73%]

...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_示例 发布时间: 20241124

293. 缓动-逐字缓动 [ 73%]

...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_示例 发布时间: 20241124

294. l微信开放域无法显示,但是可以正常传数据 [ 73%]

...化引擎 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

295. 关于适配noborder模式(个人适配分享及建议) [ 73%]

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

296. 2D物理-复合碰撞器 [ 73%]

..._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_示例 发布时间: 20241124

297. 发现个关于修改舞台Scale引发的报错。。。 [ 73%]

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

298. Laya截图3D场景相关模型,导致模型透视! [ 72%]

... 具体代码如下: (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

299. UI-Tree [ 72%]

...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_示例 发布时间: 20241124

300. UI-Tree [ 72%]

...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); let res = [ "res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png", "res/ui/tree/clip_selectBox.png", "...

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