大约有 44 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
...*1334,加一张背景图填满场景 2、设置配置文件scaleMode 为fixedwidth,通过laya2.0设置 该场景 的top、bottom、left,right 是0,场景内部随便搞个元素(比如 box),设置box 的bottom 为0,打开chrome调试,不管任何机型设备,该box元素相...
来源: Laya_社区 发布时间: 20200612
...T&lib=core,webgl,ui 打开链接,打开手机自动旋转,切换到fixedwidth,或者fixedheight,然后改变手机方向就能发现问题了。 1.0的版本经过测试没有问题,我只想说版本的更新代码可能会重构,但是这种以前没问题的地方2.0尽量不要...
来源: Laya_社区 发布时间: 20190507
....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
...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
...1 关注: 2 人 smallsow • 2018-03-16 14:53 SCALE_FIXED_WIDTH : String = fixedwidth [static] 应用保持设计宽度不变,高度根据屏幕比缩放,stage的宽度等于设计高度,高度根据屏幕比率大小而变化 1、设计宽高: 在项目代码中项目代码中初始化...
来源: Laya_社区 发布时间: 20180316
... a.竖屏思路: Laya.stage.scaleMode "fixedwidth" :宽度不变,高度根据屏幕比缩放 这种模式下的Laya.init(width,height, WebGL);高度一般是不对的,需要计算 b.横屏思路: Lay...
来源: Laya_社区 发布时间: 20200305
...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 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
....width = 640; GameConfig.height = 1136; GameConfig.scaleMode ="fixedwidth"; GameConfig.screenMode = "none"; GameConfig.alignV = "top"; GameConfig.alignH = "left"; GameConfig.startScene = "main.scene"; GameConfig.sceneRoot = ""; GameConfig.debug = false...
来源: Laya_社区 发布时间: 20201110
... }) }同时建议您将“项目设置->缩放模式”更改为fixedwidth,便于手机调试。完整的demo及效果已放置附件中。 2023-10-09 0 0 分享 微博 QZONE 微信 layaAir小孟 赞同来自: 附件如下 demo效果.zip LayaProject14(change).zip 2023-10-09 0 2 分享 ...
来源: Laya_社区 发布时间: 20231007