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

大约有 75 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)

61. 物理Bodies绑定Laya.Sprite [ 50%]

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

62. scaleMode bug [ 50%]

...1 关注: 2 人 smallsow • 2018-03-16 14:53 SCALE_FIXED_WIDTH : String = fixedwidth [static] 应用保持设计宽度不变,高度根据屏幕比缩放,stage的宽度等于设计高度,高度根据屏幕比率大小而变化 1、设计宽高: ​ 在项目代码中项目代码中初始化...

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

63. 微信小游戏,横屏,小游戏不全屏显示 [ 50%]

... a.竖屏思路:                    Laya.stage.scaleMode  "fixedwidth" :宽度不变,高度根据屏幕比缩放                   这种模式下的Laya.init(width,height, WebGL);高度一般是不对的,需要计算   b.横屏思路:                    Lay...

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

64. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 50%]

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

65. LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 [ 50%]

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

66. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 49%]

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

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

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

68. 2.0 Beta3版本中,runtime脚本的的问题 [ 48%]

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

69. viewport 的用法 [ 47%]

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

70. Maximum call stack size exceeded [ 47%]

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