大约有 75 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
Laya_社区(65) Laya2.0_文档(4) Laya_示例(1) laya_api(1) Laya3.0_api(1) Laya2.0_示例(1) Laya2.0_api(1) Laya3.0_文档(1)
....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
...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 startScene:string="test/TestScene.scene"; static sceneRoot:string=""; static debug:boolean=false; static stat:boolean=false; static physicsDebug:boolean=false; static expor...
来源: Laya_社区 发布时间: 20181001
...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
...X < scaleY) { scaleY = scaleX; } else { scaleX = scaleY; } break; case "fixedwidth": scaleY = scaleX; break; case "fixedheight": scaleX = scaleY; break; } } AppConfig.viewRect.x = (desW - divW / scaleX) / 2; AppConfig.viewRect.y = (desH - divH / scaleY) / 2; AppConfig.viewRect.width = desW - AppC...
来源: Laya_社区 发布时间: 20171205
...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
...aya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.scaleMode = "fixedwidth"; Laya.stage.bgColor = "12333"; function layaSlot(info){ layaSlot.__super.call(this); this.size(200,200); this.graphics.draw...
来源: Laya_社区 发布时间: 20170323
....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