大约有 23 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(16) Laya_示例(1) laya_api(1) Laya3.0_文档(1) Laya3.0_api(1) Laya2.0_文档(1) Laya2.0_示例(1) Laya2.0_api(1)
...; laya.utils.Stat.show(0, 0); //设置适配模式 Laya.stage.scaleMode = "fixedWidth"; Laya.stage.alignH = "left"; Laya.stage.alignV = "top"; //设置横竖屏 Laya.stage.screenMode = "vertical"; 在这里面修改我试过了,无论怎么改都没有用,都是这样 2018-08-09 0 0 分享 微...
来源: Laya_社区 发布时间: 20180809
... GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode = "fixedwidth"; GameConfig.screenMode = "none"; GameConfig.alignV = "top"; GameConfig.alignH = "left"; GameConfig.startScene = ""; GameConfig.sceneRoot = ""; GameConfig.debug = false; GameConfig.stat = false; GameConfig.physicsD...
来源: Laya_社区 发布时间: 20200104
...*1334,加一张背景图填满场景 2、设置配置文件scaleMode 为fixedwidth,通过laya2.0设置 该场景 的top、bottom、left,right 是0,场景内部随便搞个元素(比如 box),设置box 的bottom 为0,打开chrome调试,不管任何机型设备,该box元素相...
来源: Laya_社区 发布时间: 20200612
... 所用引擎:1.7.4beta 屏幕适配代码: Laya.stage.scaleMode = "fixedwidth"; Laya.stage.alignH = "center"; Laya.stage.alignV = "top"; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; 这是升级衍生的bug吧? 附件 : --> 2017-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170505
....Stage.SCREEN_HORIZONTAL; // 始终以横屏展示 Laya.stage.scaleMode = "fixedwidth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.engine.world; Matter.Engine.run(this.engine); // Engine 启动 var render = LayaR...
来源: Laya_社区 发布时间: 20180522
...atic width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="LoginScene.scene"; static sceneRoot:string=""; static debug:boolean=false; static stat:boolean=fals...
来源: Laya_社区 发布时间: 20190402
...atic width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static startScene:string="test/TestScene.scene"; static sceneRoot:string=""; static debug:boolean=false; static stat:boolean=false; static physicsDebug:boolean=false; static expor...
来源: Laya_社区 发布时间: 20181001
...启视网膜画布(useRetinalCanvas)模式。 2.2.1 保宽适配模式fixedwidth fixedwidth保宽模式就是在保障设计宽的内容一定全屏显示的等比缩放模式。这种模式推荐应用于竖屏游戏。 在这个模式下,画布宽和舞台宽会等于设计宽。但画布高...
来源: Laya3.0_文档 发布时间: 20251010
...null, () => { Config3D.useCannonPhysics = true; Laya.stage.scaleMode = "fixedwidth"; Laya.stage.screenMode = "none"; Laya.stage.alignV = "top"; Laya.stage.alignH = "left"; let scene = Laya.stage.addChild(new Laya.Scene3D()); let camera = new Laya.Camera(0, 0.1, 100); scene.addChild(camera); c...
来源: Laya_社区 发布时间: 20200915
...atic width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="mainscene.scene"; static sceneRoot:string=""; static debug:boolean=false; static stat:boolean=false...
来源: Laya_社区 发布时间: 20181014