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

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

11. 屏幕适配-自动竖屏 [ 87%]

....alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; showText(); })(); function showText() { var text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize =...

来源: Laya_示例 发布时间: 20241118

12. 屏幕适配-自动竖屏 [ 86%]

...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact";...

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

13. 屏幕适配-自动横屏 [ 86%]

...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impac...

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

14. SCALE_FIXED_WIDTH适配屏幕的问题 [ 86%]

...e.scaleMode = Laya.Stage.SCALE_SHOWALL;                 Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;             } else {                 Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH;                 Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL;      ...

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

15. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 86%]

...e.scaleMode = Laya.Stage.SCALE_SHOWALL;                 Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;             } else {                 Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH;                 Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL;      ...

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

16. 粒子系统-燃烧大地 [ 85%]

...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 Laya.Vector3(0, 2, 4)); camera.transform.rotate...

来源: Laya_示例 发布时间: 20241118

17. 粒子系统-永恒之光 [ 85%]

...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 Laya.Vector3(0, 2, 4)); camera.transform.rotate...

来源: Laya_示例 发布时间: 20241118

18. 3D场景-场景加载 [ 85%]

...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.1, 100)); camera.transform.translate(new Lay...

来源: Laya_示例 发布时间: 20241118

19. 天空-天空穹 [ 84%]

...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 Laya.Vector3(0, 0.8, 1.5)); camera.transform.ro...

来源: Laya_示例 发布时间: 20241118

20. 天空-天空盒 [ 84%]

...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 Laya.Vector3(0, 0.8, 1.5)); camera.transform.ro...

来源: Laya_示例 发布时间: 20241118